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-09 13:59:07 +03:30
|
|
|
"previewFeatures": [
|
|
|
|
|
"views"
|
|
|
|
|
],
|
2025-12-04 21:05:57 +03:30
|
|
|
"clientVersion": "7.1.0",
|
|
|
|
|
"engineVersion": "ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba",
|
|
|
|
|
"activeProvider": "mysql",
|
2025-12-14 10:15:57 +03:30
|
|
|
"inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"../src/generated/prisma\"\n previewFeatures = [\"views\"]\n moduleFormat = \"cjs\"\n}\n\ndatasource db {\n provider = \"mysql\"\n}\n\nmodel 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 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 @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 ProductVariant {\n id Int @id @default(autoincrement())\n name String @db.VarChar(255)\n basePrice Decimal @db.Decimal(10, 2)\n salePrice Decimal @db.Decimal(10, 2)\n description String? @db.Text\n barcode String? @unique(map: \"products_barcode_unique\") @db.VarChar(100)\n imageUrl String? @db.VarChar(255)\n unit String? @db.VarChar(10)\n quantity Decimal? @default(0.00) @db.Decimal(10, 2)\n alertQuantity Decimal? @default(5.00) @db.Decimal(10, 2)\n isActive Boolean @default(true)\n isFeatured Boolean @default(false)\n createdAt DateTime @default(now()) @db.Timestamp(0)\n updatedAt DateTime @updatedAt @db.Timestamp(0)\n deletedAt DateTime? @db.Timestamp(0)\n productId Int\n product Product @relation(\"Product_Variant\", fields: [productId], references: [id], onUpdate: NoAction)\n\n @@index([productId], map: \"Product_Variants_productId_fkey\")\n @@map(\"Product_Variants\")\n}\n\nmodel Product {\n id Int @id @default(autoincrement())\n name String @db.VarChar(255)\n description String? @db.Text\n sku String? @unique(map: \"products_sku_unique\") @db.VarChar(100)\n barcode String? @unique(map: \"products_barcode_unique\") @db.VarChar(100)\n createdAt DateTime @default(now()) @db.Timestamp(0)\n updatedAt DateTime @updatedAt @db.Timestamp(0)\n deletedAt DateTime? @db.Timestamp(0)\n brandId Int?\n categoryId Int?\n inventoryTransferItems InventoryTransferItem[] @relation(\"InventoryTransferItem_Product\")\n productCharges ProductCharge[] @relation(\"Product_Charges\")\n variants ProductVariant[] @relation(\"Product_Variant\")\n brand ProductBrand? @relation(\"Product_Brand\", fields: [brandId], references: [id], onUpdate: NoAction)\n category ProductCategory? @relation(\"Product_Category\", fields: [categoryId], references: [id], onUpdate: NoAction)\n purchaseReceiptItems PurchaseReceiptItem[] @relation(\"Product_PurchaseReceiptItems\")\n salesInvoiceItems SalesInvoiceItem[] @relation(\"Product_SalesInvoiceItems\")\n stockAdjustments StockAdjustment[] @relation(\"Product_Stock_Adjustments\")\n stockMovements StockMovement[] @relation(\"StockMovement_Product\")\n\n stockBalances StockBalance[] @relation(\"StockBalance_Product\")\n\n @@index([brandId], map: \"Products_brandId_fkey\")\n @@index([categoryId], map: \"Products_categoryId_fkey\")\n @@map(\"Products\")\n}\n\nmodel ProductBrand {\n id Int
|
2025-12-04 21:05:57 +03:30
|
|
|
"runtimeDataModel": {
|
|
|
|
|
"models": {},
|
|
|
|
|
"enums": {},
|
|
|
|
|
"types": {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-14 10:15:57 +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\":\"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\"},\"ProductVariant\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"basePrice\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"salePrice\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"barcode\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"imageUrl\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"unit\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"alertQuantity\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"isFeatured\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"productId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"product\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"Product_Variant\"}],\"dbName\":\"Product_Variants\"},\"Product\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sku\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"barcode\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"brandId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"inventoryTransferItems\",\"kind\":\"object\",\"type\":\"InventoryTransferItem\",\"relationName\":\"InventoryTransferItem_Product\"},{\"name\":\"productCharges\",\"kind\":\"object\",\"type\":\"ProductCharge\",\"relationName\":\"Product_Charges\"},{\"name\":\"variants\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"Product_Variant\"},{\"name\":\"brand\",\"kind\":\"object\",\"type\":\"ProductBrand\",\"relationName\":\"Product_Brand\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"ProductCategory\",\"relationName\":\"Product_Category\"},{\"name\":\"purchaseReceiptItems\",\"kind\":\"object\",\"type\":\"PurchaseReceiptItem\",\"relationName\":\"Product_PurchaseReceiptItems\"},{\"name\":\"salesInvoiceItems\",\"kind\":\"object\",\"type\":\"SalesInvoiceItem\",\"relationName\":\"Product_SalesInvoiceItems\"},{\"name\":\"stockAdjustments\",\"kind\":\"object\",
|
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-06 17:48:10 +03:30
|
|
|
* `prisma.productVariant`: Exposes CRUD operations for the **ProductVariant** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-06 17:48:10 +03:30
|
|
|
* // Fetch zero or more ProductVariants
|
|
|
|
|
* const productVariants = await prisma.productVariant.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-06 17:48:10 +03:30
|
|
|
get productVariant(): Prisma.ProductVariantDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
/**
|
2025-12-06 17:48:10 +03:30
|
|
|
* `prisma.product`: Exposes CRUD operations for the **Product** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-06 17:48:10 +03:30
|
|
|
* // Fetch zero or more Products
|
|
|
|
|
* const products = await prisma.product.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-06 17:48:10 +03:30
|
|
|
get product(): Prisma.ProductDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.productBrand`: Exposes CRUD operations for the **ProductBrand** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more ProductBrands
|
|
|
|
|
* const productBrands = await prisma.productBrand.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get productBrand(): Prisma.ProductBrandDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.productCategory`: Exposes CRUD operations for the **ProductCategory** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more ProductCategories
|
|
|
|
|
* const productCategories = await prisma.productCategory.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get productCategory(): Prisma.ProductCategoryDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
2025-12-05 00:01:44 +03:30
|
|
|
* `prisma.supplier`: Exposes CRUD operations for the **Supplier** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2025-12-05 00:01:44 +03:30
|
|
|
* // Fetch zero or more Suppliers
|
|
|
|
|
* const suppliers = await prisma.supplier.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2025-12-05 00:01:44 +03:30
|
|
|
get supplier(): Prisma.SupplierDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +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.inventory`: Exposes CRUD operations for the **Inventory** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Inventories
|
|
|
|
|
* const inventories = await prisma.inventory.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get inventory(): Prisma.InventoryDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.store`: Exposes CRUD operations for the **Store** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Stores
|
|
|
|
|
* const stores = await prisma.store.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get store(): Prisma.StoreDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.productCharge`: Exposes CRUD operations for the **ProductCharge** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more ProductCharges
|
|
|
|
|
* const productCharges = await prisma.productCharge.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get productCharge(): Prisma.ProductChargeDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `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 }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.purchaseReceipt`: Exposes CRUD operations for the **PurchaseReceipt** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more PurchaseReceipts
|
|
|
|
|
* const purchaseReceipts = await prisma.purchaseReceipt.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get purchaseReceipt(): Prisma.PurchaseReceiptDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.purchaseReceiptItem`: Exposes CRUD operations for the **PurchaseReceiptItem** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more PurchaseReceiptItems
|
|
|
|
|
* const purchaseReceiptItems = await prisma.purchaseReceiptItem.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get purchaseReceiptItem(): Prisma.PurchaseReceiptItemDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `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.stockMovement`: Exposes CRUD operations for the **StockMovement** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more StockMovements
|
|
|
|
|
* const stockMovements = await prisma.stockMovement.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get stockMovement(): Prisma.StockMovementDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.stockBalance`: Exposes CRUD operations for the **StockBalance** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more StockBalances
|
|
|
|
|
* const stockBalances = await prisma.stockBalance.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get stockBalance(): Prisma.StockBalanceDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.inventoryTransfer`: Exposes CRUD operations for the **InventoryTransfer** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more InventoryTransfers
|
|
|
|
|
* const inventoryTransfers = await prisma.inventoryTransfer.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get inventoryTransfer(): Prisma.InventoryTransferDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.inventoryTransferItem`: Exposes CRUD operations for the **InventoryTransferItem** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more InventoryTransferItems
|
|
|
|
|
* const inventoryTransferItems = await prisma.inventoryTransferItem.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get inventoryTransferItem(): Prisma.InventoryTransferItemDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.stockAdjustment`: Exposes CRUD operations for the **StockAdjustment** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more StockAdjustments
|
|
|
|
|
* const stockAdjustments = await prisma.stockAdjustment.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get stockAdjustment(): Prisma.StockAdjustmentDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
2025-12-14 10:15:57 +03:30
|
|
|
/**
|
|
|
|
|
* `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 }>;
|
|
|
|
|
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* `prisma.inventory_overview`: Exposes CRUD operations for the **inventory_overview** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Inventory_overviews
|
|
|
|
|
* const inventory_overviews = await prisma.inventory_overview.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get inventory_overview(): Prisma.inventory_overviewDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.stock_cardex`: Exposes CRUD operations for the **stock_cardex** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Stock_cardexes
|
|
|
|
|
* const stock_cardexes = await prisma.stock_cardex.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get stock_cardex(): Prisma.stock_cardexDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.stock_view`: Exposes CRUD operations for the **stock_view** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Stock_views
|
|
|
|
|
* const stock_views = await prisma.stock_view.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get stock_view(): Prisma.stock_viewDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getPrismaClientClass(): PrismaClientConstructor {
|
|
|
|
|
return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor
|
|
|
|
|
}
|