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 = {
|
2025-12-24 21:24:59 +03:30
|
|
|
"previewFeatures": [],
|
2025-12-30 21:04:01 +03:30
|
|
|
"clientVersion": "7.2.0",
|
|
|
|
|
"engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
|
2025-12-04 21:05:57 +03:30
|
|
|
"activeProvider": "mysql",
|
2026-01-04 13:45:26 +03:30
|
|
|
"inlineSchema": "model User {\n id Int @id @default(autoincrement())\n mobileNumber String @unique @db.Char(11)\n password String\n firstName String\n lastName String\n roleId Int\n createdAt DateTime @default(now()) @db.Timestamp(0)\n deletedAt DateTime? @db.Timestamp(0)\n updatedAt DateTime @updatedAt @db.Timestamp(0)\n refreshTokens RefreshToken[]\n role Role @relation(\"User_Role\", fields: [roleId], references: [id], onUpdate: NoAction)\n\n @@index([roleId], map: \"Users_roleId_fkey\")\n @@map(\"Users\")\n}\n\nmodel Role {\n id Int @id @default(autoincrement())\n name String @unique @db.VarChar(100)\n description String? @db.Text\n permissions Json?\n createdAt DateTime @default(now()) @db.Timestamp(0)\n updatedAt DateTime @updatedAt @db.Timestamp(0)\n deletedAt DateTime? @db.Timestamp(0)\n users User[] @relation(\"User_Role\")\n\n @@map(\"Roles\")\n}\n\nmodel OtpCode {\n id Int @id @default(autoincrement())\n mobileNumber String @db.VarChar(20)\n code String @db.VarChar(10)\n used Boolean @default(false)\n expiresAt DateTime @db.Timestamp(0)\n createdAt DateTime @default(now()) @db.Timestamp(0)\n\n @@index([mobileNumber])\n @@map(\"Otp_Codes\")\n}\n\nmodel RefreshToken {\n id Int @id @default(autoincrement())\n tokenHash String @db.VarChar(255)\n userId Int\n revoked Boolean @default(false)\n expiresAt DateTime @db.Timestamp(0)\n createdAt DateTime @default(now()) @db.Timestamp(0)\n user User @relation(fields: [userId], references: [id])\n\n @@index([userId])\n @@map(\"Refresh_Tokens\")\n}\n\nmodel BankBranch {\n id Int @id @default(autoincrement())\n name String @db.VarChar(255)\n code String @unique() @db.VarChar(10)\n address String? @db.VarChar(500)\n createdAt DateTime @default(now()) @db.Timestamp(0)\n updatedAt DateTime @updatedAt @db.Timestamp(0)\n deletedAt DateTime? @db.Timestamp(0)\n bankId Int\n\n bank Bank @relation(\"bank_branches\", fields: [bankId], references: [id])\n bankAccounts BankAccount[] @relation(\"Bank_Accounts_branchId_fkey\")\n\n @@map(\"Bank_Branches\")\n}\n\nmodel BankAccount {\n id Int @id @default(autoincrement())\n accountNumber String? @unique @db.VarChar(20)\n cardNumber String? @unique @db.VarChar(16)\n name String @db.VarChar(255)\n iban String? @unique @db.VarChar(34)\n branchId Int\n createdAt DateTime @default(now()) @db.Timestamp(0)\n updatedAt DateTime @updatedAt @db.Timestamp(0)\n deletedAt DateTime? @db.Timestamp(0)\n\n branch BankBranch @relation(\"Bank_Accounts_branchId_fkey\", fields: [branchId], references: [id])\n inventoryBankAccounts InventoryBankAccount[]\n purchaseReceiptPayments PurchaseReceiptPayments[]\n bankAccountTransactions BankAccountTransaction[]\n bankAccountBalances BankAccountBalance[]\n\n @@map(\"Bank_Accounts\")\n}\n\nmodel BankAccountTransaction {\n id Int @id @default(autoincrement())\n bankAccountId Int\n type BankAccountTransactionType\n amount Decimal @db.Decimal(15, 2)\n balanceAfter Decimal @db.Decimal(15, 2)\n referenceId Int\n referenceType BankTransactionRefType\n description String? @db.Text\n createdAt DateTime @default(now()) @db.Timestamp(0)\n\n bankAccount BankAccount @relation(fields: [bankAccountId], references: [id])\n\n @@index([bankAccountId])\n @@map(\"Bank_Account_Transactions\")\n}\n\nmodel BankAccountBalance {\n bankAccountId Int @unique\n balance Decimal @db.Decimal(15, 2)\n updatedAt DateTime @updatedAt @db.Timestamp(0)\n\n bankAccount BankAccount @relation(fields: [bankAccountId], references: [id])\n\n @@map(\"Bank_Account_Ba
|
2025-12-04 21:05:57 +03:30
|
|
|
"runtimeDataModel": {
|
|
|
|
|
"models": {},
|
|
|
|
|
"enums": {},
|
|
|
|
|
"types": {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"mobileNumber\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"firstName\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"lastName\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"roleId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"refreshTokens\",\"kind\":\"object\",\"type\":\"RefreshToken\",\"relationName\":\"RefreshTokenToUser\"},{\"name\":\"role\",\"kind\":\"object\",\"type\":\"Role\",\"relationName\":\"User_Role\"}],\"dbName\":\"Users\"},\"Role\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"permissions\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"users\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"User_Role\"}],\"dbName\":\"Roles\"},\"OtpCode\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"mobileNumber\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"used\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":\"Otp_Codes\"},\"RefreshToken\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"tokenHash\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"revoked\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"RefreshTokenToUser\"}],\"dbName\":\"Refresh_Tokens\"},\"BankBranch\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"bankId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"bank\",\"kind\":\"object\",\"type\":\"Bank\",\"relationName\":\"bank_branches\"},{\"name\":\"bankAccounts\",\"kind\":\"object\",\"type\":\"BankAccount\",\"relationName\":\"Bank_Accounts_branchId_fkey\"}],\"dbName\":\"Bank_Branches\"},\"BankAccount\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"accountNumber\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"cardNumber\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"iban\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"branchId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"branch\",\"kind\":\"object\",\"type\":\"BankBranch\",\"relationName\":\"Bank_Accounts_branchId_fkey\"},{\"name\":\"inventoryBankAccounts\",\"kind\":\"object\",\"type\":\"InventoryBankAccount\",\"relationName\":\"BankAccountToInventoryBankAccount\"},{\"name\":\"purchaseReceiptPayments
|
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 = {
|
|
|
|
|
getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.mysql.js"),
|
|
|
|
|
|
|
|
|
|
getQueryCompilerWasmModule: async () => {
|
|
|
|
|
const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.mysql.wasm-base64.js")
|
|
|
|
|
return await decodeBase64AsWasm(wasm)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
* ```
|
|
|
|
|
* const prisma = new PrismaClient()
|
|
|
|
|
* // Fetch zero or more Users
|
|
|
|
|
* const users = await prisma.user.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
* Read more in our [docs](https://pris.ly/d/client).
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
new <
|
|
|
|
|
Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
|
|
|
|
LogOpts extends LogOptions<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
|
|
|
|
|
* ```
|
|
|
|
|
* const prisma = new PrismaClient()
|
|
|
|
|
* // Fetch zero or more Users
|
|
|
|
|
* const users = await prisma.user.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
* Read more in our [docs](https://pris.ly/d/client).
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export interface PrismaClient<
|
|
|
|
|
in LogOpts extends Prisma.LogLevel = never,
|
|
|
|
|
in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined,
|
|
|
|
|
in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
|
|
|
> {
|
|
|
|
|
[K: symbol]: { types: Prisma.TypeMap<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' } }),
|
|
|
|
|
* ])
|
|
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
|
|
|
|
|
*/
|
|
|
|
|
$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
|
|
|
|
|
}>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Users
|
|
|
|
|
* const users = await prisma.user.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get user(): Prisma.UserDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.role`: Exposes CRUD operations for the **Role** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Roles
|
|
|
|
|
* const roles = await prisma.role.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get role(): Prisma.RoleDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.otpCode`: Exposes CRUD operations for the **OtpCode** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more OtpCodes
|
|
|
|
|
* const otpCodes = await prisma.otpCode.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get otpCode(): Prisma.OtpCodeDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.refreshToken`: Exposes CRUD operations for the **RefreshToken** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more RefreshTokens
|
|
|
|
|
* const refreshTokens = await prisma.refreshToken.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get refreshToken(): Prisma.RefreshTokenDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.bankBranch`: Exposes CRUD operations for the **BankBranch** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more BankBranches
|
|
|
|
|
* const bankBranches = await prisma.bankBranch.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get bankBranch(): Prisma.BankBranchDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.bankAccount`: Exposes CRUD operations for the **BankAccount** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more BankAccounts
|
|
|
|
|
* const bankAccounts = await prisma.bankAccount.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get bankAccount(): Prisma.BankAccountDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +03:30
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
/**
|
|
|
|
|
* `prisma.bankAccountTransaction`: Exposes CRUD operations for the **BankAccountTransaction** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more BankAccountTransactions
|
|
|
|
|
* const bankAccountTransactions = await prisma.bankAccountTransaction.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get bankAccountTransaction(): Prisma.BankAccountTransactionDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.bankAccountBalance`: Exposes CRUD operations for the **BankAccountBalance** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more BankAccountBalances
|
|
|
|
|
* const bankAccountBalances = await prisma.bankAccountBalance.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get bankAccountBalance(): Prisma.BankAccountBalanceDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.inventory`: Exposes CRUD operations for the **Inventory** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more Inventories
|
|
|
|
|
* const inventories = await prisma.inventory.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get inventory(): Prisma.InventoryDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.inventoryBankAccount`: Exposes CRUD operations for the **InventoryBankAccount** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more InventoryBankAccounts
|
|
|
|
|
* const inventoryBankAccounts = await prisma.inventoryBankAccount.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get inventoryBankAccount(): Prisma.InventoryBankAccountDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.posAccount`: Exposes CRUD operations for the **PosAccount** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more PosAccounts
|
|
|
|
|
* const posAccounts = await prisma.posAccount.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get posAccount(): Prisma.PosAccountDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-26 22:09:46 +03:30
|
|
|
* `prisma.inventoryTransfer`: Exposes CRUD operations for the **InventoryTransfer** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-26 22:09:46 +03:30
|
|
|
* // Fetch zero or more InventoryTransfers
|
|
|
|
|
* const inventoryTransfers = await prisma.inventoryTransfer.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-26 22:09:46 +03:30
|
|
|
get inventoryTransfer(): Prisma.InventoryTransferDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-26 22:09:46 +03:30
|
|
|
* `prisma.inventoryTransferItem`: Exposes CRUD operations for the **InventoryTransferItem** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-26 22:09:46 +03:30
|
|
|
* // Fetch zero or more InventoryTransferItems
|
|
|
|
|
* const inventoryTransferItems = await prisma.inventoryTransferItem.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-26 22:09:46 +03:30
|
|
|
get inventoryTransferItem(): Prisma.InventoryTransferItemDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-26 22:09:46 +03:30
|
|
|
* `prisma.bank`: Exposes CRUD operations for the **Bank** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-26 22:09:46 +03:30
|
|
|
* // Fetch zero or more Banks
|
|
|
|
|
* const banks = await prisma.bank.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-26 22:09:46 +03:30
|
|
|
get bank(): Prisma.BankDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-24 21:24:59 +03:30
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.order`: Exposes CRUD operations for the **Order** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Orders
|
|
|
|
|
* const orders = await prisma.order.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get order(): Prisma.OrderDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-01-04 13:45:26 +03:30
|
|
|
* `prisma.orderItem`: Exposes CRUD operations for the **OrderItem** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-01-04 13:45:26 +03:30
|
|
|
* // Fetch zero or more OrderItems
|
|
|
|
|
* const orderItems = await prisma.orderItem.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-01-04 13:45:26 +03:30
|
|
|
get orderItem(): Prisma.OrderItemDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-01-04 13:45:26 +03:30
|
|
|
* `prisma.customer`: Exposes CRUD operations for the **Customer** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-01-04 13:45:26 +03:30
|
|
|
* // Fetch zero or more Customers
|
|
|
|
|
* const customers = await prisma.customer.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-01-04 13:45:26 +03:30
|
|
|
get customer(): Prisma.CustomerDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.triggerLog`: Exposes CRUD operations for the **TriggerLog** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more TriggerLogs
|
|
|
|
|
* const triggerLogs = await prisma.triggerLog.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get triggerLog(): Prisma.TriggerLogDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.productVariant`: Exposes CRUD operations for the **ProductVariant** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more ProductVariants
|
|
|
|
|
* const productVariants = await prisma.productVariant.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get productVariant(): Prisma.ProductVariantDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
2025-12-21 19:09:41 +03:30
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.product`: Exposes CRUD operations for the **Product** model.
|
2025-12-21 19:09:41 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more Products
|
|
|
|
|
* const products = await prisma.product.findMany()
|
2025-12-21 19:09:41 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get product(): Prisma.ProductDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-21 19:09:41 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.productBrand`: Exposes CRUD operations for the **ProductBrand** model.
|
2025-12-21 19:09:41 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more ProductBrands
|
|
|
|
|
* const productBrands = await prisma.productBrand.findMany()
|
2025-12-21 19:09:41 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get productBrand(): Prisma.ProductBrandDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-21 19:09:41 +03:30
|
|
|
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.productCategory`: Exposes CRUD operations for the **ProductCategory** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more ProductCategories
|
|
|
|
|
* const productCategories = await prisma.productCategory.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get productCategory(): Prisma.ProductCategoryDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.purchaseReceipt`: Exposes CRUD operations for the **PurchaseReceipt** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more PurchaseReceipts
|
|
|
|
|
* const purchaseReceipts = await prisma.purchaseReceipt.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get purchaseReceipt(): Prisma.PurchaseReceiptDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.purchaseReceiptItem`: Exposes CRUD operations for the **PurchaseReceiptItem** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more PurchaseReceiptItems
|
|
|
|
|
* const purchaseReceiptItems = await prisma.purchaseReceiptItem.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get purchaseReceiptItem(): Prisma.PurchaseReceiptItemDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
2025-12-14 10:15:57 +03:30
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.purchaseReceiptPayments`: Exposes CRUD operations for the **PurchaseReceiptPayments** model.
|
2025-12-14 10:15:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more PurchaseReceiptPayments
|
|
|
|
|
* const purchaseReceiptPayments = await prisma.purchaseReceiptPayments.findMany()
|
2025-12-14 10:15:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get purchaseReceiptPayments(): Prisma.PurchaseReceiptPaymentsDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-14 10:15:57 +03:30
|
|
|
|
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
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.stockMovement`: Exposes CRUD operations for the **StockMovement** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more StockMovements
|
|
|
|
|
* const stockMovements = await prisma.stockMovement.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get stockMovement(): Prisma.StockMovementDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.stockBalance`: Exposes CRUD operations for the **StockBalance** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more StockBalances
|
|
|
|
|
* const stockBalances = await prisma.stockBalance.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get stockBalance(): Prisma.StockBalanceDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-24 21:24:59 +03:30
|
|
|
* `prisma.stockAdjustment`: Exposes CRUD operations for the **StockAdjustment** model.
|
2025-12-09 13:59:07 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-24 21:24:59 +03:30
|
|
|
* // Fetch zero or more StockAdjustments
|
|
|
|
|
* const stockAdjustments = await prisma.stockAdjustment.findMany()
|
2025-12-09 13:59:07 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-24 21:24:59 +03:30
|
|
|
get stockAdjustment(): Prisma.StockAdjustmentDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-26 22:09:46 +03:30
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
/**
|
|
|
|
|
* `prisma.stockReservation`: Exposes CRUD operations for the **StockReservation** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more StockReservations
|
|
|
|
|
* const stockReservations = await prisma.stockReservation.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get stockReservation(): Prisma.StockReservationDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
2025-12-26 22:09:46 +03:30
|
|
|
/**
|
|
|
|
|
* `prisma.supplier`: Exposes CRUD operations for the **Supplier** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Suppliers
|
|
|
|
|
* const suppliers = await prisma.supplier.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get supplier(): Prisma.SupplierDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.supplierLedger`: Exposes CRUD operations for the **SupplierLedger** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more SupplierLedgers
|
|
|
|
|
* const supplierLedgers = await prisma.supplierLedger.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get supplierLedger(): Prisma.SupplierLedgerDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getPrismaClientClass(): PrismaClientConstructor {
|
|
|
|
|
return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor
|
|
|
|
|
}
|