2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
/* !!! 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.js"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const config: runtime.GetPrismaClientConfig = {
|
2026-01-07 15:25:59 +03:30
|
|
|
"previewFeatures": [
|
|
|
|
|
"views"
|
|
|
|
|
],
|
2026-04-22 21:55:40 +03:30
|
|
|
"clientVersion": "7.7.0",
|
|
|
|
|
"engineVersion": "75cbdc1eb7150937890ad5465d861175c6624711",
|
2025-12-04 21:05:57 +03:30
|
|
|
"activeProvider": "mysql",
|
2026-04-27 10:45:39 +03:30
|
|
|
"inlineSchema": "model AdminAccount {\n id String @id @default(ulid())\n\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt() @db.Timestamp(0)\n\n admin_id String\n admin Admin @relation(fields: [admin_id], references: [id])\n\n account_id String @unique\n account Account @relation(fields: [account_id], references: [id])\n\n @@map(\"admin_accounts\")\n}\n\nmodel Admin {\n id String @id @default(ulid())\n mobile_number String @unique()\n national_code String? @unique()\n first_name String\n last_name String\n\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt() @db.Timestamp(0)\n\n accounts AdminAccount[]\n\n @@map(\"admins\")\n}\n\n// model LegalProfile {\n// user_id String @id\n// company_name String\n// register_no String @unique()\n// representative_name String?\n// representative_national_id String?\n\n// // user User @relation(fields: [user_id], references: [id])\n\n// @@map(\"legal_profiles\")\n// }\n\n// model IndividualProfile {\n// user_id String @id\n// national_code String @unique()\n// first_name String\n// last_name String\n// birth_date DateTime?\n// mobile_number String\n// // user User @relation(fields: [user_id], references: [id])\n\n// @@map(\"individual_profiles\")\n// }\n\nmodel Account {\n id String @id @default(ulid())\n username String @unique()\n password String\n status AccountStatus\n type AccountType\n\n admin_account AdminAccount?\n provider_account ProviderAccount?\n partner_account PartnerAccount?\n consumer_account ConsumerAccount?\n\n // tokens Token[]\n // refresh_tokens RefreshToken[]\n\n @@map(\"accounts\")\n}\n\n// model Token {\n// id String @id @d @uniqueefault(ulid())\n// token String @unique\n// type TokenType\n// created_at DateTime @default(now())\n// expires_at DateTime\n\n// account_id String\n// account Account @relation(fields: [account_id], references: [id])\n\n// @@unique([type, account_id])\n// @@map(\"tokens\")\n// }\n\n// model VerificationCode {\n// id String @id @default(ulid())\n// code String\n// is_used Boolean @default(false)\n// created_at DateTime @default(now())\n// expires_at DateTime\n\n// account_id String\n// account Account @relation(fields: [account_id], references: [id])\n\n// @@map(\"verification_codes\")\n// }\n\nmodel ConsumerAccount {\n id String @id @default(ulid())\n role ConsumerRole\n\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt() @db.Timestamp(0)\n\n consumer_id String\n consumer Consumer @relation(fields: [consumer_id], references: [id])\n\n account_id String @unique()\n account Account @relation(fields: [account_id], references: [id])\n\n pos Pos?\n permission PermissionConsumer?\n account_allocation LicenseAccountAllocation?\n sales_invoices SalesInvoice[]\n\n @@map(\"consumer_accounts\")\n}\n\nmodel Consumer {\n id String @id @default(ulid())\n type ConsumerType\n status ConsumerStatus @default(ACTIVE)\n\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt() @db.Timestamp(0)\n\n accounts ConsumerAccount[]\n business_activities BusinessActivity[]\n devices ConsumerDevices[]\n individual ConsumerIndividual?\n legal ConsumerLegal?\n\n @@map(\"consumers\")\n}\n\nmodel ConsumerIndividual {\n first_name String\n last_name String\n mobile_number String\n national_code String\n\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt() @db.Timestamp(0)\n\n partner_id String\n partner Partner @relation(fields: [partner_id], references: [id])\n\n consumer_id String @id\n consumer Consumer @relation(fields: [
|
2025-12-04 21:05:57 +03:30
|
|
|
"runtimeDataModel": {
|
|
|
|
|
"models": {},
|
|
|
|
|
"enums": {},
|
|
|
|
|
"types": {}
|
2026-04-22 21:55:40 +03:30
|
|
|
},
|
|
|
|
|
"parameterizationSchema": {
|
|
|
|
|
"strings": [],
|
|
|
|
|
"graph": ""
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 10:45:39 +03:30
|
|
|
config.runtimeDataModel = JSON.parse("{\"models\":{\"AdminAccount\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"admin_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"admin\",\"kind\":\"object\",\"type\":\"Admin\",\"relationName\":\"AdminToAdminAccount\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"account\",\"kind\":\"object\",\"type\":\"Account\",\"relationName\":\"AccountToAdminAccount\"}],\"dbName\":\"admin_accounts\"},\"Admin\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mobile_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"national_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"first_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"last_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"accounts\",\"kind\":\"object\",\"type\":\"AdminAccount\",\"relationName\":\"AdminToAdminAccount\"}],\"dbName\":\"admins\"},\"Account\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"AccountStatus\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"AccountType\"},{\"name\":\"admin_account\",\"kind\":\"object\",\"type\":\"AdminAccount\",\"relationName\":\"AccountToAdminAccount\"},{\"name\":\"provider_account\",\"kind\":\"object\",\"type\":\"ProviderAccount\",\"relationName\":\"AccountToProviderAccount\"},{\"name\":\"partner_account\",\"kind\":\"object\",\"type\":\"PartnerAccount\",\"relationName\":\"AccountToPartnerAccount\"},{\"name\":\"consumer_account\",\"kind\":\"object\",\"type\":\"ConsumerAccount\",\"relationName\":\"AccountToConsumerAccount\"}],\"dbName\":\"accounts\"},\"ConsumerAccount\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"role\",\"kind\":\"enum\",\"type\":\"ConsumerRole\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"consumer_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"consumer\",\"kind\":\"object\",\"type\":\"Consumer\",\"relationName\":\"ConsumerToConsumerAccount\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"account\",\"kind\":\"object\",\"type\":\"Account\",\"relationName\":\"AccountToConsumerAccount\"},{\"name\":\"pos\",\"kind\":\"object\",\"type\":\"Pos\",\"relationName\":\"ConsumerAccountToPos\"},{\"name\":\"permission\",\"kind\":\"object\",\"type\":\"PermissionConsumer\",\"relationName\":\"ConsumerAccountToPermissionConsumer\"},{\"name\":\"account_allocation\",\"kind\":\"object\",\"type\":\"LicenseAccountAllocation\",\"relationName\":\"ConsumerAccountToLicenseAccountAllocation\"},{\"name\":\"sales_invoices\",\"kind\":\"object\",\"type\":\"SalesInvoice\",\"relationName\":\"ConsumerAccountToSalesInvoice\"}],\"dbName\":\"consumer_accounts\"},\"Consumer\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"ConsumerType\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"ConsumerStatus\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"accounts\",\"kind\":\"object\",\"type\":\"ConsumerAccount\",\"relationName\":\"ConsumerToConsumerAccount\"},{\"name\":\"business_activities\",\"kind\":\"object\",\"type\":\"BusinessActivity\",\"relationName\":\"BusinessActivityToConsumer\"},{\"name\":\"devices\",\"kind\":\"object\",\"type\":\"ConsumerDevices\",\"relationName\":\"ConsumerToConsumerDevices\"},{\"name\":\"individual\",\"kind\":\"object\",
|
2026-04-22 21:55:40 +03:30
|
|
|
config.parameterizationSchema = {
|
2026-04-27 10:45:39 +03:30
|
|
|
strings: JSON.parse("[\"where\",\"orderBy\",\"cursor\",\"accounts\",\"_count\",\"admin\",\"admin_account\",\"business_activities\",\"category\",\"business_activity\",\"customer\",\"individual\",\"legal\",\"sales_invoices\",\"consumer\",\"devices\",\"partner\",\"account\",\"consumers_individual\",\"consumers_legal\",\"charge_transaction\",\"license\",\"license_renews\",\"activation\",\"license_activation\",\"credits\",\"allocation\",\"credit\",\"account_allocations\",\"licenses\",\"license_charge_transactions\",\"account_quota_charge_transactions\",\"license_renew_charge_transactions\",\"pos\",\"consumer_account\",\"permission\",\"pos_permissions\",\"complex\",\"complex_permissions\",\"business\",\"business_permissions\",\"account_allocation\",\"items\",\"invoice\",\"payments\",\"good\",\"services\",\"sales_invoice_items\",\"service\",\"goods\",\"guild\",\"good_categories\",\"complexes\",\"permission_businesses\",\"customer_individuals\",\"customer_legals\",\"pos_list\",\"permission_complexes\",\"brand\",\"poses\",\"device\",\"provider\",\"permission_pos\",\"provider_account\",\"partner_account\",\"AdminAccount.findUnique\",\"AdminAccount.findUniqueOrThrow\",\"AdminAccount.findFirst\",\"AdminAccount.findFirstOrThrow\",\"AdminAccount.findMany\",\"data\",\"AdminAccount.createOne\",\"AdminAccount.createMany\",\"AdminAccount.updateOne\",\"AdminAccount.updateMany\",\"create\",\"update\",\"AdminAccount.upsertOne\",\"AdminAccount.deleteOne\",\"AdminAccount.deleteMany\",\"having\",\"_min\",\"_max\",\"AdminAccount.groupBy\",\"AdminAccount.aggregate\",\"Admin.findUnique\",\"Admin.findUniqueOrThrow\",\"Admin.findFirst\",\"Admin.findFirstOrThrow\",\"Admin.findMany\",\"Admin.createOne\",\"Admin.createMany\",\"Admin.updateOne\",\"Admin.updateMany\",\"Admin.upsertOne\",\"Admin.deleteOne\",\"Admin.deleteMany\",\"Admin.groupBy\",\"Admin.aggregate\",\"Account.findUnique\",\"Account.findUniqueOrThrow\",\"Account.findFirst\",\"Account.findFirstOrThrow\",\"Account.findMany\",\"Account.createOne\",\"Account.createMany\",\"Account.updateOne\",\"Account.updateMany\",\"Account.upsertOne\",\"Account.deleteOne\",\"Account.deleteMany\",\"Account.groupBy\",\"Account.aggregate\",\"ConsumerAccount.findUnique\",\"ConsumerAccount.findUniqueOrThrow\",\"ConsumerAccount.findFirst\",\"ConsumerAccount.findFirstOrThrow\",\"ConsumerAccount.findMany\",\"ConsumerAccount.createOne\",\"ConsumerAccount.createMany\",\"ConsumerAccount.updateOne\",\"ConsumerAccount.updateMany\",\"ConsumerAccount.upsertOne\",\"ConsumerAccount.deleteOne\",\"ConsumerAccount.deleteMany\",\"ConsumerAccount.groupBy\",\"ConsumerAccount.aggregate\",\"Consumer.findUnique\",\"Consumer.findUniqueOrThrow\",\"Consumer.findFirst\",\"Consumer.findFirstOrThrow\",\"Consumer.findMany\",\"Consumer.createOne\",\"Consumer.createMany\",\"Consumer.updateOne\",\"Consumer.updateMany\",\"Consumer.upsertOne\",\"Consumer.deleteOne\",\"Consumer.deleteMany\",\"Consumer.groupBy\",\"Consumer.aggregate\",\"ConsumerIndividual.findUnique\",\"ConsumerIndividual.findUniqueOrThrow\",\"ConsumerIndividual.findFirst\",\"ConsumerIndividual.findFirstOrThrow\",\"ConsumerIndividual.findMany\",\"ConsumerIndividual.createOne\",\"ConsumerIndividual.createMany\",\"ConsumerIndividual.updateOne\",\"ConsumerIndividual.updateMany\",\"ConsumerIndividual.upsertOne\",\"ConsumerIndividual.deleteOne\",\"ConsumerIndividual.deleteMany\",\"ConsumerIndividual.groupBy\",\"ConsumerIndividual.aggregate\",\"ConsumerLegal.findUnique\",\"ConsumerLegal.findUniqueOrThrow\",\"ConsumerLegal.findFirst\",\"ConsumerLegal.findFirstOrThrow\",\"ConsumerLegal.findMany\",\"ConsumerLegal.createOne\",\"ConsumerLegal.createMany\",\"ConsumerLegal.updateOne\",\"ConsumerLegal.updateMany\",\"ConsumerLegal.upsertOne\",\"ConsumerLegal.deleteOne\",\"ConsumerLegal.deleteMany\",\"ConsumerLegal.groupBy\",\"ConsumerLegal.aggregate\",\"BusinessActivity.findUnique\",\"BusinessActivity.findUniqueOrThrow\",\"BusinessActivity.findFirst\",\"BusinessActivity.findFirstOrThrow\",\"BusinessActivity.findMany\",\"BusinessActivity.createOne\",\"BusinessActivity.createMany\",\"BusinessAct
|
|
|
|
|
graph: "pBWnAswECgUAANMKACARAACtCgAglQUAANIKADCWBQAAAwAQlwUAANIKADCYBQEAAAABnAUBAAAAAZ4FQADKCAAhnwVAAMoIACGfBgEAyAgAIQEAAAABACAKBQAA0woAIBEAAK0KACCVBQAA0goAMJYFAAADABCXBQAA0goAMJgFAQDICAAhnAUBAMgIACGeBUAAyggA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AgCgAA_gkAIJUFAAD9CQAwlgUAACcAEJcFAAD9CQAwzQUBAMgIACHTBQEAyAgAIdQFAQDICAAh1QUBAMgIACHWBQEAyQgAIdcFAQDICAAhAQAAACcAIBMKAAC1CgAgIQAAlAoAICIAAKoJACAqAACFCgAgLAAAtgoAIJUFAAC0CgAwlgUAACkAEJcFAAC0CgAwmAUBAMgIACGcBQEAyAgAIZ4FQADKCAAhnwVAAMoIACG-BRAAgwoAIcAFAQDJCAAhygUBAMgIACHLBQAAiwkAIMwFQADLCAAhzQUBAMkIACHOBQEAyAgAIQoKAACpEgAgIQAAthIAICIAAO4OACAqAACuEgAgLAAAzxIAIMAFAADUCgAgywUAANQKACDMBQAA1AoAIM0FAADUCgAgtAYAANASACATCgAAtQoAICEAAJQKACAiAACqCQAgKgAAhQoAICwAALYKACCVBQAAtAoAMJYFAAApABCXBQAAtAoAMJgFAQAAAAGcBQEAyAgAIZ4FQADKCAAhnwVAAMoIACG-BRAAgwoAIcAFAQDJCAAhygUBAAAAAcsFAACLCQAgzAVAAMsIA
|
2026-04-22 21:55:40 +03:30
|
|
|
}
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
|
|
|
|
|
const { Buffer } = await import('node:buffer')
|
|
|
|
|
const wasmArray = Buffer.from(wasmBase64, 'base64')
|
|
|
|
|
return new WebAssembly.Module(wasmArray)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config.compilerWasm = {
|
2026-04-22 21:55:40 +03:30
|
|
|
getRuntime: async () => await import("@prisma/client/runtime/query_compiler_fast_bg.mysql.js"),
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
getQueryCompilerWasmModule: async () => {
|
2026-04-22 21:55:40 +03:30
|
|
|
const { wasm } = await import("@prisma/client/runtime/query_compiler_fast_bg.mysql.wasm-base64.js")
|
2025-12-04 21:05:57 +03:30
|
|
|
return await decodeBase64AsWasm(wasm)
|
2026-04-22 21:55:40 +03:30
|
|
|
},
|
|
|
|
|
|
|
|
|
|
importName: "./query_compiler_fast_bg.js"
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> =
|
|
|
|
|
'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never
|
|
|
|
|
|
|
|
|
|
export interface PrismaClientConstructor {
|
|
|
|
|
/**
|
|
|
|
|
* ## Prisma Client
|
|
|
|
|
*
|
|
|
|
|
* Type-safe database client for TypeScript
|
|
|
|
|
* @example
|
|
|
|
|
* ```
|
2026-04-22 21:55:40 +03:30
|
|
|
* const prisma = new PrismaClient({
|
|
|
|
|
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
|
|
|
* })
|
2026-04-11 14:47:05 +03:30
|
|
|
* // Fetch zero or more AdminAccounts
|
|
|
|
|
* const adminAccounts = await prisma.adminAccount.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
* Read more in our [docs](https://pris.ly/d/client).
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
new <
|
|
|
|
|
Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
|
|
|
|
LogOpts extends LogOptions<Options> = LogOptions<Options>,
|
|
|
|
|
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<Options, Prisma.PrismaClientOptions> ): PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ## Prisma Client
|
|
|
|
|
*
|
|
|
|
|
* Type-safe database client for TypeScript
|
|
|
|
|
* @example
|
|
|
|
|
* ```
|
2026-04-22 21:55:40 +03:30
|
|
|
* const prisma = new PrismaClient({
|
|
|
|
|
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
|
|
|
* })
|
2026-04-11 14:47:05 +03:30
|
|
|
* // Fetch zero or more AdminAccounts
|
|
|
|
|
* const adminAccounts = await prisma.adminAccount.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
* 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<ExtArgs>['other'] }
|
|
|
|
|
|
|
|
|
|
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Connect with the database
|
|
|
|
|
*/
|
|
|
|
|
$connect(): runtime.Types.Utils.JsPromise<void>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Disconnect from the database
|
|
|
|
|
*/
|
|
|
|
|
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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' } }),
|
|
|
|
|
* ])
|
|
|
|
|
* ```
|
|
|
|
|
*
|
2026-04-22 21:55:40 +03:30
|
|
|
* Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions).
|
2025-12-04 21:05:57 +03:30
|
|
|
*/
|
|
|
|
|
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
|
|
|
|
|
|
|
|
|
|
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise<R>
|
|
|
|
|
|
|
|
|
|
$extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
|
|
|
|
|
extArgs: ExtArgs
|
|
|
|
|
}>>
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* `prisma.adminAccount`: Exposes CRUD operations for the **AdminAccount** model.
|
2026-02-12 20:31:04 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-11 14:47:05 +03:30
|
|
|
* // Fetch zero or more AdminAccounts
|
|
|
|
|
* const adminAccounts = await prisma.adminAccount.findMany()
|
2026-02-12 20:31:04 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
get adminAccount(): Prisma.AdminAccountDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-02-24 12:42:10 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* `prisma.admin`: Exposes CRUD operations for the **Admin** model.
|
2026-02-24 12:42:10 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-11 14:47:05 +03:30
|
|
|
* // Fetch zero or more Admins
|
|
|
|
|
* const admins = await prisma.admin.findMany()
|
2026-02-24 12:42:10 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
get admin(): Prisma.AdminDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-02-24 12:42:10 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-03-16 00:33:40 +03:30
|
|
|
* `prisma.account`: Exposes CRUD operations for the **Account** model.
|
2026-02-24 12:42:10 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-03-16 00:33:40 +03:30
|
|
|
* // Fetch zero or more Accounts
|
|
|
|
|
* const accounts = await prisma.account.findMany()
|
2026-02-24 12:42:10 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-03-16 00:33:40 +03:30
|
|
|
get account(): Prisma.AccountDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* `prisma.consumerAccount`: Exposes CRUD operations for the **ConsumerAccount** model.
|
2026-03-16 00:33:40 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-11 14:47:05 +03:30
|
|
|
* // Fetch zero or more ConsumerAccounts
|
|
|
|
|
* const consumerAccounts = await prisma.consumerAccount.findMany()
|
2026-03-16 00:33:40 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
get consumerAccount(): Prisma.ConsumerAccountDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-03-16 00:33:40 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* `prisma.consumer`: Exposes CRUD operations for the **Consumer** model.
|
2026-03-16 00:33:40 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-11 14:47:05 +03:30
|
|
|
* // Fetch zero or more Consumers
|
|
|
|
|
* const consumers = await prisma.consumer.findMany()
|
2026-03-16 00:33:40 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
get consumer(): Prisma.ConsumerDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-03-07 11:25:11 +03:30
|
|
|
|
2026-04-27 10:45:39 +03:30
|
|
|
/**
|
|
|
|
|
* `prisma.consumerIndividual`: Exposes CRUD operations for the **ConsumerIndividual** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more ConsumerIndividuals
|
|
|
|
|
* const consumerIndividuals = await prisma.consumerIndividual.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get consumerIndividual(): Prisma.ConsumerIndividualDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.consumerLegal`: Exposes CRUD operations for the **ConsumerLegal** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more ConsumerLegals
|
|
|
|
|
* const consumerLegals = await prisma.consumerLegal.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get consumerLegal(): Prisma.ConsumerLegalDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
/**
|
|
|
|
|
* `prisma.businessActivity`: Exposes CRUD operations for the **BusinessActivity** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more BusinessActivities
|
|
|
|
|
* const businessActivities = await prisma.businessActivity.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get businessActivity(): Prisma.BusinessActivityDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.complex`: Exposes CRUD operations for the **Complex** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Complexes
|
|
|
|
|
* const complexes = await prisma.complex.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get complex(): Prisma.ComplexDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.pos`: Exposes CRUD operations for the **Pos** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Pos
|
|
|
|
|
* const pos = await prisma.pos.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get pos(): Prisma.PosDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.deviceBrand`: Exposes CRUD operations for the **DeviceBrand** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more DeviceBrands
|
|
|
|
|
* const deviceBrands = await prisma.deviceBrand.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get deviceBrand(): Prisma.DeviceBrandDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-02-12 20:31:04 +03:30
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `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<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
2026-04-24 23:02:05 +03:30
|
|
|
/**
|
|
|
|
|
* `prisma.licenseChargeTransaction`: Exposes CRUD operations for the **LicenseChargeTransaction** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more LicenseChargeTransactions
|
|
|
|
|
* const licenseChargeTransactions = await prisma.licenseChargeTransaction.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get licenseChargeTransaction(): Prisma.LicenseChargeTransactionDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
/**
|
2026-03-07 11:25:11 +03:30
|
|
|
* `prisma.license`: Exposes CRUD operations for the **License** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-03-07 11:25:11 +03:30
|
|
|
* // Fetch zero or more Licenses
|
|
|
|
|
* const licenses = await prisma.license.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-03-07 11:25:11 +03:30
|
|
|
get license(): Prisma.LicenseDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +03:30
|
|
|
|
2026-04-16 22:19:20 +03:30
|
|
|
/**
|
2026-04-23 20:59:39 +03:30
|
|
|
* `prisma.licenseActivation`: Exposes CRUD operations for the **LicenseActivation** model.
|
2026-04-16 22:19:20 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-23 20:59:39 +03:30
|
|
|
* // Fetch zero or more LicenseActivations
|
|
|
|
|
* const licenseActivations = await prisma.licenseActivation.findMany()
|
2026-04-16 22:19:20 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-23 20:59:39 +03:30
|
|
|
get licenseActivation(): Prisma.LicenseActivationDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-04-16 22:19:20 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-04-24 23:02:05 +03:30
|
|
|
* `prisma.licenseRenewChargeTransaction`: Exposes CRUD operations for the **LicenseRenewChargeTransaction** model.
|
2026-04-16 22:19:20 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-24 23:02:05 +03:30
|
|
|
* // Fetch zero or more LicenseRenewChargeTransactions
|
|
|
|
|
* const licenseRenewChargeTransactions = await prisma.licenseRenewChargeTransaction.findMany()
|
2026-04-16 22:19:20 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-24 23:02:05 +03:30
|
|
|
get licenseRenewChargeTransaction(): Prisma.LicenseRenewChargeTransactionDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-04-23 20:59:39 +03:30
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.licenseRenew`: Exposes CRUD operations for the **LicenseRenew** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more LicenseRenews
|
|
|
|
|
* const licenseRenews = await prisma.licenseRenew.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get licenseRenew(): Prisma.LicenseRenewDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-24 23:02:05 +03:30
|
|
|
* `prisma.partnerAccountQuotaChargeTransaction`: Exposes CRUD operations for the **PartnerAccountQuotaChargeTransaction** model.
|
2026-04-23 20:59:39 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-24 23:02:05 +03:30
|
|
|
* // Fetch zero or more PartnerAccountQuotaChargeTransactions
|
|
|
|
|
* const partnerAccountQuotaChargeTransactions = await prisma.partnerAccountQuotaChargeTransaction.findMany()
|
2026-04-23 20:59:39 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-24 23:02:05 +03:30
|
|
|
get partnerAccountQuotaChargeTransaction(): Prisma.PartnerAccountQuotaChargeTransactionDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-04-23 20:59:39 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-04-24 23:02:05 +03:30
|
|
|
* `prisma.partnerAccountQuotaCredit`: Exposes CRUD operations for the **PartnerAccountQuotaCredit** model.
|
2026-04-23 20:59:39 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-24 23:02:05 +03:30
|
|
|
* // Fetch zero or more PartnerAccountQuotaCredits
|
|
|
|
|
* const partnerAccountQuotaCredits = await prisma.partnerAccountQuotaCredit.findMany()
|
2026-04-23 20:59:39 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-24 23:02:05 +03:30
|
|
|
get partnerAccountQuotaCredit(): Prisma.PartnerAccountQuotaCreditDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-04-23 20:59:39 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-04-24 23:02:05 +03:30
|
|
|
* `prisma.licenseAccountAllocation`: Exposes CRUD operations for the **LicenseAccountAllocation** model.
|
2026-04-23 20:59:39 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-24 23:02:05 +03:30
|
|
|
* // Fetch zero or more LicenseAccountAllocations
|
|
|
|
|
* const licenseAccountAllocations = await prisma.licenseAccountAllocation.findMany()
|
2026-04-23 20:59:39 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-24 23:02:05 +03:30
|
|
|
get licenseAccountAllocation(): Prisma.LicenseAccountAllocationDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-04-16 22:19:20 +03:30
|
|
|
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* `prisma.partnerAccount`: Exposes CRUD operations for the **PartnerAccount** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-11 14:47:05 +03:30
|
|
|
* // Fetch zero or more PartnerAccounts
|
|
|
|
|
* const partnerAccounts = await prisma.partnerAccount.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
get partnerAccount(): Prisma.PartnerAccountDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-03-07 11:25:11 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* `prisma.partner`: Exposes CRUD operations for the **Partner** model.
|
2026-03-07 11:25:11 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-11 14:47:05 +03:30
|
|
|
* // Fetch zero or more Partners
|
|
|
|
|
* const partners = await prisma.partner.findMany()
|
2026-03-07 11:25:11 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
get partner(): Prisma.PartnerDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-03-07 11:25:11 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-03-16 00:33:40 +03:30
|
|
|
* `prisma.permissionConsumer`: Exposes CRUD operations for the **PermissionConsumer** model.
|
2026-03-07 11:25:11 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-03-16 00:33:40 +03:30
|
|
|
* // Fetch zero or more PermissionConsumers
|
|
|
|
|
* const permissionConsumers = await prisma.permissionConsumer.findMany()
|
2026-03-07 11:25:11 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-03-16 00:33:40 +03:30
|
|
|
get permissionConsumer(): Prisma.PermissionConsumerDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.permissionPos`: Exposes CRUD operations for the **PermissionPos** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more PermissionPos
|
|
|
|
|
* const permissionPos = await prisma.permissionPos.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get permissionPos(): Prisma.PermissionPosDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.permissionComplex`: Exposes CRUD operations for the **PermissionComplex** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more PermissionComplexes
|
|
|
|
|
* const permissionComplexes = await prisma.permissionComplex.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get permissionComplex(): Prisma.PermissionComplexDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.permissionBusiness`: Exposes CRUD operations for the **PermissionBusiness** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more PermissionBusinesses
|
|
|
|
|
* const permissionBusinesses = await prisma.permissionBusiness.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get permissionBusiness(): Prisma.PermissionBusinessDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-03-07 11:25:11 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* `prisma.providerAccount`: Exposes CRUD operations for the **ProviderAccount** model.
|
2026-03-07 11:25:11 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-11 14:47:05 +03:30
|
|
|
* // Fetch zero or more ProviderAccounts
|
|
|
|
|
* const providerAccounts = await prisma.providerAccount.findMany()
|
2026-03-07 11:25:11 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
get providerAccount(): Prisma.ProviderAccountDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
2026-03-16 00:33:40 +03:30
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* `prisma.provider`: Exposes CRUD operations for the **Provider** model.
|
2026-03-16 00:33:40 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-11 14:47:05 +03:30
|
|
|
* // Fetch zero or more Providers
|
|
|
|
|
* const providers = await prisma.provider.findMany()
|
2026-03-16 00:33:40 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
get provider(): Prisma.ProviderDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-03-16 00:33:40 +03:30
|
|
|
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
2026-04-22 21:55:40 +03:30
|
|
|
* `prisma.consumerDevices`: Exposes CRUD operations for the **ConsumerDevices** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-22 21:55:40 +03:30
|
|
|
* // Fetch zero or more ConsumerDevices
|
|
|
|
|
* const consumerDevices = await prisma.consumerDevices.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-22 21:55:40 +03:30
|
|
|
get consumerDevices(): Prisma.ConsumerDevicesDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
/**
|
2026-04-22 21:55:40 +03:30
|
|
|
* `prisma.applicationReleasedInfo`: Exposes CRUD operations for the **ApplicationReleasedInfo** model.
|
2026-03-07 11:25:11 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-04-22 21:55:40 +03:30
|
|
|
* // Fetch zero or more ApplicationReleasedInfos
|
|
|
|
|
* const applicationReleasedInfos = await prisma.applicationReleasedInfo.findMany()
|
2026-03-07 11:25:11 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-04-22 21:55:40 +03:30
|
|
|
get applicationReleasedInfo(): Prisma.ApplicationReleasedInfoDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.triggerLog`: Exposes CRUD operations for the **TriggerLog** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more TriggerLogs
|
|
|
|
|
* const triggerLogs = await prisma.triggerLog.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get triggerLog(): Prisma.TriggerLogDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-03-07 11:25:11 +03:30
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.customer`: Exposes CRUD operations for the **Customer** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Customers
|
|
|
|
|
* const customers = await prisma.customer.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get customer(): Prisma.CustomerDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.customerIndividual`: Exposes CRUD operations for the **CustomerIndividual** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more CustomerIndividuals
|
|
|
|
|
* const customerIndividuals = await prisma.customerIndividual.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get customerIndividual(): Prisma.CustomerIndividualDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.customerLegal`: Exposes CRUD operations for the **CustomerLegal** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more CustomerLegals
|
|
|
|
|
* const customerLegals = await prisma.customerLegal.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get customerLegal(): Prisma.CustomerLegalDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.good`: Exposes CRUD operations for the **Good** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Goods
|
|
|
|
|
* const goods = await prisma.good.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get good(): Prisma.GoodDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.goodCategory`: Exposes CRUD operations for the **GoodCategory** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more GoodCategories
|
|
|
|
|
* const goodCategories = await prisma.goodCategory.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get goodCategory(): Prisma.GoodCategoryDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
2026-03-16 00:33:40 +03:30
|
|
|
/**
|
|
|
|
|
* `prisma.guild`: Exposes CRUD operations for the **Guild** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Guilds
|
|
|
|
|
* const guilds = await prisma.guild.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get guild(): Prisma.GuildDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
/**
|
|
|
|
|
* `prisma.salesInvoice`: Exposes CRUD operations for the **SalesInvoice** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more SalesInvoices
|
|
|
|
|
* const salesInvoices = await prisma.salesInvoice.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get salesInvoice(): Prisma.SalesInvoiceDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.salesInvoiceItem`: Exposes CRUD operations for the **SalesInvoiceItem** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more SalesInvoiceItems
|
|
|
|
|
* const salesInvoiceItems = await prisma.salesInvoiceItem.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get salesInvoiceItem(): Prisma.SalesInvoiceItemDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.salesInvoicePayment`: Exposes CRUD operations for the **SalesInvoicePayment** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more SalesInvoicePayments
|
|
|
|
|
* const salesInvoicePayments = await prisma.salesInvoicePayment.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get salesInvoicePayment(): Prisma.SalesInvoicePaymentDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
2026-02-04 13:49:07 +03:30
|
|
|
* `prisma.service`: Exposes CRUD operations for the **Service** model.
|
2025-12-26 22:09:46 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-02-04 13:49:07 +03:30
|
|
|
* // Fetch zero or more Services
|
|
|
|
|
* const services = await prisma.service.findMany()
|
2025-12-26 22:09:46 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-02-04 13:49:07 +03:30
|
|
|
get service(): Prisma.ServiceDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-01-07 15:25:59 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-02-04 13:49:07 +03:30
|
|
|
* `prisma.serviceCategory`: Exposes CRUD operations for the **ServiceCategory** model.
|
2026-01-07 15:25:59 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-02-04 13:49:07 +03:30
|
|
|
* // Fetch zero or more ServiceCategories
|
|
|
|
|
* const serviceCategories = await prisma.serviceCategory.findMany()
|
2026-01-07 15:25:59 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-02-04 13:49:07 +03:30
|
|
|
get serviceCategory(): Prisma.ServiceCategoryDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getPrismaClientClass(): PrismaClientConstructor {
|
|
|
|
|
return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor
|
|
|
|
|
}
|