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"
|
|
|
|
|
],
|
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-02-24 12:42:10 +03:30
|
|
|
"inlineSchema": "model Customer {\n id String @id @default(uuid())\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt @db.Timestamp(0)\n deleted_at DateTime? @db.Timestamp(0)\n type CustomerType\n complex_id String\n is_favorite Boolean? @default(false)\n\n sales_invoices SalesInvoice[]\n customerIndividuals CustomerIndividual?\n customerLegals CustomerLegal?\n\n @@map(\"customers\")\n}\n\nmodel CustomerIndividual {\n customer_id String @id\n first_name String @db.VarChar(255)\n last_name String @db.VarChar(255)\n national_id String @db.Char(10)\n postal_code String @db.Char(10)\n economic_code String? @db.Char(10)\n complex_id String\n\n customer Customer @relation(fields: [customer_id], references: [id])\n\n @@unique([complex_id, national_id])\n @@map(\"customer_individuals\")\n}\n\nmodel CustomerLegal {\n customer_id String @id\n company_name String @db.VarChar(255)\n economic_code String @db.Char(10)\n registration_number String @unique() @db.Char(20)\n postal_code String @db.Char(10)\n complex_id String\n\n customer Customer @relation(fields: [customer_id], references: [id])\n\n @@unique([complex_id, registration_number])\n @@map(\"customer_legal\")\n}\n\nmodel Device {\n account_id String? @db.VarChar(255)\n app_version String @db.VarChar(20)\n build_number String @db.VarChar(20)\n\n uuid String @id @unique() @db.VarChar(255)\n platform String @db.VarChar(100)\n brand String @db.VarChar(100)\n model String @db.VarChar(100)\n device String @db.VarChar(100)\n os_version String @db.VarChar(20)\n sdk_version String @db.VarChar(20)\n release_number String @db.VarChar(20)\n browser_name String? @db.VarChar(100)\n fcm_token String? @db.VarChar(100)\n\n @@map(\"devices\")\n}\n\nenum PaymentMethodType {\n TERMINAL\n CASH\n SET_OFF\n CARD\n BANK\n CHECK\n OTHER\n}\n\nenum PurchaseReceiptStatus {\n UNPAID\n PARTIALLY_PAID\n PAID\n}\n\nenum SalesInvoiceType {\n GOOD\n SERVICE\n}\n\nenum UnitType {\n COUNT\n GRAM\n KILOGRAM\n LITER\n METER\n HOUR\n}\n\nenum CustomerType {\n INDIVIDUAL\n LEGAL\n UNKNOWN\n}\n\nenum SalesInvoiceItemPricingModel {\n STANDARD\n GOLD\n}\n\nmodel Good {\n id String @id @default(uuid())\n name String @db.VarChar(255)\n description String? @db.Text\n sku String @db.VarChar(100)\n local_sku String? @unique() @db.VarChar(100)\n barcode String? @unique() @db.VarChar(100)\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt @db.Timestamp(0)\n deleted_at DateTime? @db.Timestamp(0)\n category_id String?\n base_sale_price Decimal @default(0.00) @db.Decimal(15, 0)\n account_id String\n complex_id String\n\n category GoodCategory? @relation(fields: [category_id], references: [id])\n sales_invoice_items SalesInvoiceItem[]\n\n @@index([category_id])\n @@map(\"goods\")\n}\n\nmodel GoodCategory {\n id String @id @default(uuid())\n name String @db.VarChar(100)\n description String? @db.Text\n image_url String? @db.VarChar(255)\n account_id String\n complex_id String\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt @db.Timestamp(0)\n deleted_at DateTime? @db.Timestamp(0)\n\n goods Good[]\n\n @@map(\"good_categories\")\n}\n\nmodel TriggerLog {\n id Int @id @default(autoincrement())\n message String @db.Text\n createdAt DateTime @default(now()) @db.Timestamp(0)\n name String @db.Text\n\n @@map(\"trigger_logs\")\n}\n\nmodel SalesInvoice {\n id String @id @default(uuid())\n code String @unique @db.VarChar(100)\n total_amount Decimal @db.Decimal(15, 2)\n notes String? @db.Text\n unknown_customer Json? @db.
|
2025-12-04 21:05:57 +03:30
|
|
|
"runtimeDataModel": {
|
|
|
|
|
"models": {},
|
|
|
|
|
"enums": {},
|
|
|
|
|
"types": {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-24 12:42:10 +03:30
|
|
|
config.runtimeDataModel = JSON.parse("{\"models\":{\"Customer\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"deleted_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"CustomerType\"},{\"name\":\"complex_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_favorite\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"sales_invoices\",\"kind\":\"object\",\"type\":\"SalesInvoice\",\"relationName\":\"CustomerToSalesInvoice\"},{\"name\":\"customerIndividuals\",\"kind\":\"object\",\"type\":\"CustomerIndividual\",\"relationName\":\"CustomerToCustomerIndividual\"},{\"name\":\"customerLegals\",\"kind\":\"object\",\"type\":\"CustomerLegal\",\"relationName\":\"CustomerToCustomerLegal\"}],\"dbName\":\"customers\"},\"CustomerIndividual\":{\"fields\":[{\"name\":\"customer_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"first_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"last_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"national_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"postal_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"economic_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"complex_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"customer\",\"kind\":\"object\",\"type\":\"Customer\",\"relationName\":\"CustomerToCustomerIndividual\"}],\"dbName\":\"customer_individuals\"},\"CustomerLegal\":{\"fields\":[{\"name\":\"customer_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"company_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"economic_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"registration_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"postal_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"complex_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"customer\",\"kind\":\"object\",\"type\":\"Customer\",\"relationName\":\"CustomerToCustomerLegal\"}],\"dbName\":\"customer_legal\"},\"Device\":{\"fields\":[{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"app_version\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"build_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"uuid\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"platform\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"brand\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"model\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"device\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"os_version\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sdk_version\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"release_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"browser_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fcm_token\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":\"devices\"},\"Good\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sku\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"local_sku\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"barcode\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"deleted_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"category_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"base_sale_price\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"complex_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"GoodCategory\",\"relationName\":\"GoodToGoodCategory\"},{\"name\":\"sales_invoice_items\",\"
|
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()
|
2026-02-12 20:31:04 +03:30
|
|
|
* // Fetch zero or more Customers
|
|
|
|
|
* const customers = await prisma.customer.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
|
|
|
|
|
* ```
|
|
|
|
|
* const prisma = new PrismaClient()
|
2026-02-12 20:31:04 +03:30
|
|
|
* // Fetch zero or more Customers
|
|
|
|
|
* const customers = await prisma.customer.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' } }),
|
|
|
|
|
* ])
|
|
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
}>>
|
|
|
|
|
|
|
|
|
|
/**
|
2026-02-12 20:31:04 +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 }>;
|
2026-02-24 12:42:10 +03:30
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `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 }>;
|
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-02-04 13:49:07 +03:30
|
|
|
* `prisma.good`: Exposes CRUD operations for the **Good** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-02-04 13:49:07 +03:30
|
|
|
* // Fetch zero or more Goods
|
|
|
|
|
* const goods = await prisma.good.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-02-04 13:49:07 +03:30
|
|
|
get good(): Prisma.GoodDelegate<ExtArgs, { omit: OmitOpts }>;
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-02-04 13:49:07 +03:30
|
|
|
* `prisma.goodCategory`: Exposes CRUD operations for the **GoodCategory** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-02-04 13:49:07 +03:30
|
|
|
* // Fetch zero or more GoodCategories
|
|
|
|
|
* const goodCategories = await prisma.goodCategory.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-02-04 13:49:07 +03:30
|
|
|
get goodCategory(): Prisma.GoodCategoryDelegate<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
|
|
|
|
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
|
|
|
|
|
}
|