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-03-14 16:26:44 +03:30
|
|
|
"inlineSchema": "model Token {\n id String @id @default(uuid())\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\nmodel VerificationCode {\n id String @id @default(uuid())\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 Guild {\n id String @id @default(uuid())\n name String\n code String?\n\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt() @db.Timestamp(0)\n\n business_activities BusinessActivity[]\n goods Good[]\n good_categories GoodCategory[]\n\n @@map(\"guilds\")\n}\n\nmodel BusinessActivity {\n id String @id @default(uuid())\n name String\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt() @db.Timestamp(0)\n\n guild_id String\n owner_id String\n\n guild Guild @relation(fields: [guild_id], references: [id])\n user User @relation(fields: [owner_id], references: [id])\n\n complexes Complex[]\n accounts Account[]\n\n @@map(\"business_activities\")\n}\n\nmodel Complex {\n id String @id @default(uuid())\n name String\n address String?\n tax_id String?\n\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt() @db.Timestamp(0)\n\n business_activity_id String\n\n business_activity BusinessActivity @relation(fields: [business_activity_id], references: [id])\n\n pos_list Pos[]\n goods Good[]\n good_categories GoodCategory[]\n\n @@map(\"complexes\")\n}\n\nmodel Pos {\n id String @id @default(uuid())\n name String\n serial String @unique\n model String?\n status POSStatus @default(ACTIVE)\n pos_type POSType\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt() @db.Timestamp(0)\n\n complex_id String\n device_id String?\n provider_id String?\n\n complex Complex @relation(fields: [complex_id], references: [id])\n device Device? @relation(fields: [device_id], references: [id])\n provider Provider? @relation(fields: [provider_id], references: [id])\n\n licenses License[]\n accounts Account[]\n\n @@map(\"poses\")\n}\n\n// model BusinessAccount {\n// id String @id @default(uuid())\n// role BusinessRole\n// status AccountStatus @default(ACTIVE)\n// created_at DateTime @default(now())\n// business_activity_id String\n// account_id String @unique\n\n// account Account @relation(fields: [account_id], references: [id])\n// owned_activities BusinessActivity[] @relation(\"business_owner\")\n\n// @@unique([business_activity_id, account_id])\n// @@map(\"business_accounts\")\n// }\n\n// model PosAccount {\n// id String @id @default(uuid())\n// pos_id String\n// account_id String\n// role POSRole\n// created_at DateTime @default(now())\n\n// pos Pos @relation(fields: [pos_id], references: [id])\n// account Account @relation(fields: [account_id], references: [id])\n\n// @@unique([pos_id, account_id])\n// @@map(\"pos_accounts\")\n// }\n\nmodel DeviceBrand {\n id String @id @default(uuid())\n name String\n\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt() @db.Timestamp(0)\n\n devices Device[]\n\n @@map(\"device_brands\")\n}\n\nmodel Device {\n id String @id @default(uuid())\n name String\n os_version String?\n\n created_at DateTime @default(now()) @db.Timestamp(0)\n updated_at DateTime @updatedAt() @db.Timestamp(0)\n\n brand_id String\n\n brand Dev
|
2025-12-04 21:05:57 +03:30
|
|
|
"runtimeDataModel": {
|
|
|
|
|
"models": {},
|
|
|
|
|
"enums": {},
|
|
|
|
|
"types": {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-14 16:26:44 +03:30
|
|
|
config.runtimeDataModel = JSON.parse("{\"models\":{\"Token\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"TokenType\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"account\",\"kind\":\"object\",\"type\":\"Account\",\"relationName\":\"AccountToToken\"}],\"dbName\":\"tokens\"},\"VerificationCode\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_used\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"account\",\"kind\":\"object\",\"type\":\"Account\",\"relationName\":\"AccountToVerificationCode\"}],\"dbName\":\"verification_codes\"},\"Guild\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"business_activities\",\"kind\":\"object\",\"type\":\"BusinessActivity\",\"relationName\":\"BusinessActivityToGuild\"},{\"name\":\"goods\",\"kind\":\"object\",\"type\":\"Good\",\"relationName\":\"GoodToGuild\"},{\"name\":\"good_categories\",\"kind\":\"object\",\"type\":\"GoodCategory\",\"relationName\":\"GoodCategoryToGuild\"}],\"dbName\":\"guilds\"},\"BusinessActivity\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"guild_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"owner_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"guild\",\"kind\":\"object\",\"type\":\"Guild\",\"relationName\":\"BusinessActivityToGuild\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"BusinessActivityToUser\"},{\"name\":\"complexes\",\"kind\":\"object\",\"type\":\"Complex\",\"relationName\":\"BusinessActivityToComplex\"},{\"name\":\"accounts\",\"kind\":\"object\",\"type\":\"Account\",\"relationName\":\"AccountToBusinessActivity\"}],\"dbName\":\"business_activities\"},\"Complex\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tax_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"business_activity_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"business_activity\",\"kind\":\"object\",\"type\":\"BusinessActivity\",\"relationName\":\"BusinessActivityToComplex\"},{\"name\":\"pos_list\",\"kind\":\"object\",\"type\":\"Pos\",\"relationName\":\"ComplexToPos\"},{\"name\":\"goods\",\"kind\":\"object\",\"type\":\"Good\",\"relationName\":\"ComplexToGood\"},{\"name\":\"good_categories\",\"kind\":\"object\",\"type\":\"GoodCategory\",\"relationName\":\"ComplexToGoodCategory\"}],\"dbName\":\"complexes\"},\"Pos\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"serial\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"model\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"POSStatus\"},{\"name\":\"pos_type\",\"kind\":\"enum\",\"type\":\"POSType\"},{\"name\":\"created_at\",\"kin
|
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-03-07 11:25:11 +03:30
|
|
|
* // Fetch zero or more Tokens
|
|
|
|
|
* const tokens = await prisma.token.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-03-07 11:25:11 +03:30
|
|
|
* // Fetch zero or more Tokens
|
|
|
|
|
* const tokens = await prisma.token.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-03-07 11:25:11 +03:30
|
|
|
* `prisma.token`: Exposes CRUD operations for the **Token** model.
|
2026-02-12 20:31:04 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-03-07 11:25:11 +03:30
|
|
|
* // Fetch zero or more Tokens
|
|
|
|
|
* const tokens = await prisma.token.findMany()
|
2026-02-12 20:31:04 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-03-07 11:25:11 +03:30
|
|
|
get token(): Prisma.TokenDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-02-24 12:42:10 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-03-07 11:25:11 +03:30
|
|
|
* `prisma.verificationCode`: Exposes CRUD operations for the **VerificationCode** model.
|
2026-02-24 12:42:10 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-03-07 11:25:11 +03:30
|
|
|
* // Fetch zero or more VerificationCodes
|
|
|
|
|
* const verificationCodes = await prisma.verificationCode.findMany()
|
2026-02-24 12:42:10 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-03-07 11:25:11 +03:30
|
|
|
get verificationCode(): Prisma.VerificationCodeDelegate<ExtArgs, { omit: OmitOpts }>;
|
2026-02-24 12:42:10 +03:30
|
|
|
|
|
|
|
|
/**
|
2026-03-07 11:25:11 +03:30
|
|
|
* `prisma.guild`: Exposes CRUD operations for the **Guild** model.
|
2026-02-24 12:42:10 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-03-07 11:25:11 +03:30
|
|
|
* // Fetch zero or more Guilds
|
|
|
|
|
* const guilds = await prisma.guild.findMany()
|
2026-02-24 12:42:10 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-03-07 11:25:11 +03:30
|
|
|
get guild(): Prisma.GuildDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `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-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-03-07 11:25:11 +03:30
|
|
|
* `prisma.partner`: Exposes CRUD operations for the **Partner** model.
|
2025-12-04 21:05:57 +03:30
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
2026-03-07 11:25:11 +03:30
|
|
|
* // Fetch zero or more Partners
|
|
|
|
|
* const partners = await prisma.partner.findMany()
|
2025-12-04 21:05:57 +03:30
|
|
|
* ```
|
|
|
|
|
*/
|
2026-03-07 11:25:11 +03:30
|
|
|
get partner(): Prisma.PartnerDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `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.account`: Exposes CRUD operations for the **Account** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Accounts
|
|
|
|
|
* const accounts = await prisma.account.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get account(): Prisma.AccountDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `prisma.provider`: Exposes CRUD operations for the **Provider** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more Providers
|
|
|
|
|
* const providers = await prisma.provider.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get provider(): Prisma.ProviderDelegate<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-03-07 11:25:11 +03:30
|
|
|
/**
|
|
|
|
|
* `prisma.userDevices`: Exposes CRUD operations for the **UserDevices** model.
|
|
|
|
|
* Example usage:
|
|
|
|
|
* ```ts
|
|
|
|
|
* // Fetch zero or more UserDevices
|
|
|
|
|
* const userDevices = await prisma.userDevices.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
get userDevices(): Prisma.UserDevicesDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* `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-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
|
|
|
|
|
}
|