Files
psp_api/src/generated/prisma/internal/prismaNamespace.ts
T

1475 lines
46 KiB
TypeScript
Raw Normal View History

/* !!! 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! 🛑
*
* All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
* While this enables partial backward compatibility, it is not part of the stable public API.
*
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
* model files in the `model` directory!
*/
import * as runtime from "@prisma/client/runtime/client"
import type * as Prisma from "../models.js"
import { type PrismaClient } from "./class.js"
export type * from '../models.js'
export type DMMF = typeof runtime.DMMF
export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>
/**
* Prisma Errors
*/
export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
export const PrismaClientInitializationError = runtime.PrismaClientInitializationError
export type PrismaClientInitializationError = runtime.PrismaClientInitializationError
export const PrismaClientValidationError = runtime.PrismaClientValidationError
export type PrismaClientValidationError = runtime.PrismaClientValidationError
/**
* Re-export of sql-template-tag
*/
export const sql = runtime.sqltag
export const empty = runtime.empty
export const join = runtime.join
export const raw = runtime.raw
export const Sql = runtime.Sql
export type Sql = runtime.Sql
/**
* Decimal.js
*/
export const Decimal = runtime.Decimal
export type Decimal = runtime.Decimal
export type DecimalJsLike = runtime.DecimalJsLike
/**
* Extensions
*/
export type Extension = runtime.Types.Extensions.UserArgs
export const getExtensionContext = runtime.Extensions.getExtensionContext
export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>
export type Payload<T, F extends runtime.Operation = never> = runtime.Types.Public.Payload<T, F>
export type Result<T, A, F extends runtime.Operation> = runtime.Types.Public.Result<T, A, F>
export type Exact<A, W> = runtime.Types.Public.Exact<A, W>
export type PrismaVersion = {
client: string
engine: string
}
/**
* Prisma Client JS version: 7.2.0
* Query Engine version: 0c8ef2ce45c83248ab3df073180d5eda9e8be7a3
*/
export const prismaVersion: PrismaVersion = {
client: "7.2.0",
engine: "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3"
}
/**
* Utility Types
*/
export type Bytes = runtime.Bytes
export type JsonObject = runtime.JsonObject
export type JsonArray = runtime.JsonArray
export type JsonValue = runtime.JsonValue
export type InputJsonObject = runtime.InputJsonObject
export type InputJsonArray = runtime.InputJsonArray
export type InputJsonValue = runtime.InputJsonValue
export const NullTypes = {
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
}
/**
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const DbNull = runtime.DbNull
/**
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const JsonNull = runtime.JsonNull
/**
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const AnyNull = runtime.AnyNull
type SelectAndInclude = {
select: any
include: any
}
type SelectAndOmit = {
select: any
omit: any
}
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Prisma__Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
export type Enumerable<T> = T | Array<T>;
/**
* Subset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
*/
export type Subset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never;
};
/**
* SelectSubset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
* Additionally, it validates, if both select and include are present. If the case, it errors.
*/
export type SelectSubset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
(T extends SelectAndInclude
? 'Please either choose `select` or `include`.'
: T extends SelectAndOmit
? 'Please either choose `select` or `omit`.'
: {})
/**
* Subset + Intersection
* @desc From `T` pick properties that exist in `U` and intersect `K`
*/
export type SubsetIntersection<T, U, K> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
K
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
/**
* XOR is needed to have a real mutually exclusive union type
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
*/
export type XOR<T, U> =
T extends object ?
U extends object ?
(Without<T, U> & U) | (Without<U, T> & T)
: U : T
/**
* Is T a Record?
*/
type IsObject<T extends any> = T extends Array<any>
? False
: T extends Date
? False
: T extends Uint8Array
? False
: T extends BigInt
? False
: T extends object
? True
: False
/**
* If it's T[], return T
*/
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
/**
* From ts-toolbelt
*/
type __Either<O extends object, K extends Key> = Omit<O, K> &
{
// Merge all but K
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
}[K]
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
type _Either<
O extends object,
K extends Key,
strict extends Boolean
> = {
1: EitherStrict<O, K>
0: EitherLoose<O, K>
}[strict]
export type Either<
O extends object,
K extends Key,
strict extends Boolean = 1
> = O extends unknown ? _Either<O, K, strict> : never
export type Union = any
export type PatchUndefined<O extends object, O1 extends object> = {
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
} & {}
/** Helper Types for "Merge" **/
export type IntersectOf<U extends Union> = (
U extends unknown ? (k: U) => void : never
) extends (k: infer I) => void
? I
: never
export type Overwrite<O extends object, O1 extends object> = {
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
} & {};
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
[K in keyof U]-?: At<U, K>;
}>>;
type Key = string | number | symbol;
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
1: AtStrict<O, K>;
0: AtLoose<O, K>;
}[strict];
export type ComputeRaw<A extends any> = A extends Function ? A : {
[K in keyof A]: A[K];
} & {};
export type OptionalFlat<O> = {
[K in keyof O]?: O[K];
} & {};
type _Record<K extends keyof any, T> = {
[P in K]: T;
};
// cause typescript not to expand types and preserve names
type NoExpand<T> = T extends unknown ? T : never;
// this type assumes the passed object is entirely optional
export type AtLeast<O extends object, K extends string> = NoExpand<
O extends unknown
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
| {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
: never>;
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
/** End Helper Types for "Merge" **/
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
export type Boolean = True | False
export type True = 1
export type False = 0
export type Not<B extends Boolean> = {
0: 1
1: 0
}[B]
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
? 0 // anything `never` is false
: A1 extends A2
? 1
: 0
export type Has<U extends Union, U1 extends Union> = Not<
Extends<Exclude<U1, U>, U1>
>
export type Or<B1 extends Boolean, B2 extends Boolean> = {
0: {
0: 0
1: 1
}
1: {
0: 1
1: 1
}
}[B1][B2]
export type Keys<U extends Union> = U extends unknown ? keyof U : never
export type GetScalarType<T, O> = O extends object ? {
[P in keyof T]: P extends keyof O
? O[P]
: never
} : never
type FieldPaths<
T,
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
> = IsObject<T> extends True ? U : T
export type GetHavingFields<T> = {
[K in keyof T]: Or<
Or<Extends<'OR', K>, Extends<'AND', K>>,
Extends<'NOT', K>
> extends True
? // infer is only needed to not hit TS limit
// based on the brilliant idea of Pierre-Antoine Mills
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
T[K] extends infer TK
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
: never
: {} extends FieldPaths<T[K]>
? never
: K
}[keyof T]
/**
* Convert tuple to union
*/
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
/**
* Like `Pick`, but additionally can also accept an array of keys
*/
export type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
/**
* Exclude all keys with underscores
*/
export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
export const ModelName = {
2026-02-04 13:49:07 +03:30
Good: 'Good',
GoodCategory: 'GoodCategory',
Customer: 'Customer',
TriggerLog: 'TriggerLog',
SalesInvoice: 'SalesInvoice',
SalesInvoiceItem: 'SalesInvoiceItem',
SalesInvoicePayment: 'SalesInvoicePayment',
2026-02-04 13:49:07 +03:30
Service: 'Service',
ServiceCategory: 'ServiceCategory'
} as const
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record<string, any>> {
returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>
}
export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
globalOmitOptions: {
omit: GlobalOmitOptions
}
meta: {
2026-02-04 13:49:07 +03:30
modelProps: "good" | "goodCategory" | "customer" | "triggerLog" | "salesInvoice" | "salesInvoiceItem" | "salesInvoicePayment" | "service" | "serviceCategory"
txIsolationLevel: TransactionIsolationLevel
}
model: {
2026-02-04 13:49:07 +03:30
Good: {
payload: Prisma.$GoodPayload<ExtArgs>
fields: Prisma.GoodFieldRefs
operations: {
findUnique: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodPayload> | null
}
findUniqueOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodPayload>
}
findFirst: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodPayload> | null
}
findFirstOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodPayload>
}
findMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodPayload>[]
}
create: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodPayload>
}
createMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodPayload>
}
update: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodPayload>
}
deleteMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodPayload>
}
aggregate: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateGood>
}
groupBy: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.GoodGroupByOutputType>[]
}
count: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.GoodCountAggregateOutputType> | number
}
}
}
2026-02-04 13:49:07 +03:30
GoodCategory: {
payload: Prisma.$GoodCategoryPayload<ExtArgs>
fields: Prisma.GoodCategoryFieldRefs
operations: {
findUnique: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodCategoryPayload> | null
}
findUniqueOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodCategoryPayload>
}
findFirst: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodCategoryPayload> | null
}
findFirstOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodCategoryPayload>
}
findMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodCategoryPayload>[]
}
create: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodCategoryPayload>
}
createMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodCategoryPayload>
}
update: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodCategoryPayload>
}
deleteMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$GoodCategoryPayload>
}
aggregate: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateGoodCategory>
}
groupBy: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.GoodCategoryGroupByOutputType>[]
}
count: {
2026-02-04 13:49:07 +03:30
args: Prisma.GoodCategoryCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.GoodCategoryCountAggregateOutputType> | number
}
}
}
2026-02-04 13:49:07 +03:30
Customer: {
payload: Prisma.$CustomerPayload<ExtArgs>
fields: Prisma.CustomerFieldRefs
operations: {
findUnique: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload> | null
}
findUniqueOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
findFirst: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload> | null
}
findFirstOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
findMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>[]
}
create: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
createMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
update: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
deleteMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
aggregate: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateCustomer>
}
groupBy: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.CustomerGroupByOutputType>[]
}
count: {
2026-02-04 13:49:07 +03:30
args: Prisma.CustomerCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.CustomerCountAggregateOutputType> | number
}
}
}
2026-02-04 13:49:07 +03:30
TriggerLog: {
payload: Prisma.$TriggerLogPayload<ExtArgs>
fields: Prisma.TriggerLogFieldRefs
operations: {
findUnique: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TriggerLogPayload> | null
}
findUniqueOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TriggerLogPayload>
}
findFirst: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TriggerLogPayload> | null
}
findFirstOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TriggerLogPayload>
}
findMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TriggerLogPayload>[]
}
create: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TriggerLogPayload>
}
createMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TriggerLogPayload>
}
update: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TriggerLogPayload>
}
deleteMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TriggerLogPayload>
}
aggregate: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateTriggerLog>
}
groupBy: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.TriggerLogGroupByOutputType>[]
}
count: {
2026-02-04 13:49:07 +03:30
args: Prisma.TriggerLogCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.TriggerLogCountAggregateOutputType> | number
}
}
}
2026-02-04 13:49:07 +03:30
SalesInvoice: {
payload: Prisma.$SalesInvoicePayload<ExtArgs>
fields: Prisma.SalesInvoiceFieldRefs
operations: {
findUnique: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePayload> | null
}
findUniqueOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePayload>
}
findFirst: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePayload> | null
}
findFirstOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePayload>
}
findMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePayload>[]
}
create: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePayload>
}
createMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePayload>
}
update: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePayload>
}
deleteMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePayload>
}
aggregate: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateSalesInvoice>
}
groupBy: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.SalesInvoiceGroupByOutputType>[]
}
count: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.SalesInvoiceCountAggregateOutputType> | number
}
}
}
2026-02-04 13:49:07 +03:30
SalesInvoiceItem: {
payload: Prisma.$SalesInvoiceItemPayload<ExtArgs>
fields: Prisma.SalesInvoiceItemFieldRefs
operations: {
findUnique: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoiceItemPayload> | null
}
findUniqueOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoiceItemPayload>
}
findFirst: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoiceItemPayload> | null
}
findFirstOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoiceItemPayload>
}
findMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoiceItemPayload>[]
}
create: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoiceItemPayload>
}
createMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoiceItemPayload>
}
update: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoiceItemPayload>
}
deleteMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoiceItemPayload>
}
aggregate: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateSalesInvoiceItem>
}
groupBy: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.SalesInvoiceItemGroupByOutputType>[]
}
count: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoiceItemCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.SalesInvoiceItemCountAggregateOutputType> | number
}
}
}
2026-02-04 13:49:07 +03:30
SalesInvoicePayment: {
payload: Prisma.$SalesInvoicePaymentPayload<ExtArgs>
fields: Prisma.SalesInvoicePaymentFieldRefs
operations: {
findUnique: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentPayload> | null
}
findUniqueOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentPayload>
}
findFirst: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentPayload> | null
}
findFirstOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentPayload>
}
findMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentPayload>[]
}
create: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentPayload>
}
createMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentPayload>
}
update: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentPayload>
}
deleteMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentPayload>
}
aggregate: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateSalesInvoicePayment>
}
groupBy: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.SalesInvoicePaymentGroupByOutputType>[]
}
count: {
2026-02-04 13:49:07 +03:30
args: Prisma.SalesInvoicePaymentCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.SalesInvoicePaymentCountAggregateOutputType> | number
}
}
}
2026-02-04 13:49:07 +03:30
Service: {
payload: Prisma.$ServicePayload<ExtArgs>
fields: Prisma.ServiceFieldRefs
operations: {
findUnique: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServicePayload> | null
}
findUniqueOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServicePayload>
}
findFirst: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServicePayload> | null
}
findFirstOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServicePayload>
}
findMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServicePayload>[]
}
create: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServicePayload>
}
createMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServicePayload>
}
update: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServicePayload>
}
deleteMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServicePayload>
}
aggregate: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateService>
}
groupBy: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.ServiceGroupByOutputType>[]
}
count: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.ServiceCountAggregateOutputType> | number
}
}
}
2026-02-04 13:49:07 +03:30
ServiceCategory: {
payload: Prisma.$ServiceCategoryPayload<ExtArgs>
fields: Prisma.ServiceCategoryFieldRefs
operations: {
findUnique: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServiceCategoryPayload> | null
}
findUniqueOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServiceCategoryPayload>
}
findFirst: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServiceCategoryPayload> | null
}
findFirstOrThrow: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServiceCategoryPayload>
}
findMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServiceCategoryPayload>[]
}
create: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServiceCategoryPayload>
}
createMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServiceCategoryPayload>
}
update: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServiceCategoryPayload>
}
deleteMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ServiceCategoryPayload>
}
aggregate: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateServiceCategory>
}
groupBy: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.ServiceCategoryGroupByOutputType>[]
}
count: {
2026-02-04 13:49:07 +03:30
args: Prisma.ServiceCategoryCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.ServiceCategoryCountAggregateOutputType> | number
}
}
}
2026-02-04 13:49:07 +03:30
}
} & {
other: {
payload: any
operations: {
$executeRaw: {
args: [query: TemplateStringsArray | Sql, ...values: any[]],
result: any
}
2026-02-04 13:49:07 +03:30
$executeRawUnsafe: {
args: [query: string, ...values: any[]],
result: any
}
$queryRaw: {
args: [query: TemplateStringsArray | Sql, ...values: any[]],
result: any
}
$queryRawUnsafe: {
args: [query: string, ...values: any[]],
result: any
}
}
}
}
/**
* Enums
*/
export const TransactionIsolationLevel = runtime.makeStrictEnum({
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
} as const)
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
2026-02-04 13:49:07 +03:30
export const GoodScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
sku: 'sku',
2026-02-04 13:49:07 +03:30
localSku: 'localSku',
barcode: 'barcode',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt',
categoryId: 'categoryId',
2026-02-04 13:49:07 +03:30
baseSalePrice: 'baseSalePrice'
} as const
2026-02-04 13:49:07 +03:30
export type GoodScalarFieldEnum = (typeof GoodScalarFieldEnum)[keyof typeof GoodScalarFieldEnum]
2026-02-04 13:49:07 +03:30
export const GoodCategoryScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
imageUrl: 'imageUrl',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
2026-02-04 13:49:07 +03:30
deletedAt: 'deletedAt'
} as const
2026-02-04 13:49:07 +03:30
export type GoodCategoryScalarFieldEnum = (typeof GoodCategoryScalarFieldEnum)[keyof typeof GoodCategoryScalarFieldEnum]
2026-02-04 13:49:07 +03:30
export const CustomerScalarFieldEnum = {
id: 'id',
2026-02-04 13:49:07 +03:30
firstName: 'firstName',
lastName: 'lastName',
email: 'email',
mobileNumber: 'mobileNumber',
address: 'address',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt'
} as const
2026-02-04 13:49:07 +03:30
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
2026-02-04 13:49:07 +03:30
export const TriggerLogScalarFieldEnum = {
id: 'id',
2026-02-04 13:49:07 +03:30
message: 'message',
createdAt: 'createdAt',
2026-02-04 13:49:07 +03:30
name: 'name'
} as const
2026-02-04 13:49:07 +03:30
export type TriggerLogScalarFieldEnum = (typeof TriggerLogScalarFieldEnum)[keyof typeof TriggerLogScalarFieldEnum]
export const SalesInvoiceScalarFieldEnum = {
id: 'id',
code: 'code',
totalAmount: 'totalAmount',
description: 'description',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
2026-02-04 13:49:07 +03:30
customerId: 'customerId'
} as const
export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[keyof typeof SalesInvoiceScalarFieldEnum]
export const SalesInvoiceItemScalarFieldEnum = {
id: 'id',
count: 'count',
unitPrice: 'unitPrice',
totalAmount: 'totalAmount',
createdAt: 'createdAt',
invoiceId: 'invoiceId',
2026-02-04 13:49:07 +03:30
goodId: 'goodId',
serviceId: 'serviceId'
} as const
export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFieldEnum)[keyof typeof SalesInvoiceItemScalarFieldEnum]
export const SalesInvoicePaymentScalarFieldEnum = {
id: 'id',
invoiceId: 'invoiceId',
amount: 'amount',
paymentMethod: 'paymentMethod',
paidAt: 'paidAt',
createdAt: 'createdAt'
} as const
export type SalesInvoicePaymentScalarFieldEnum = (typeof SalesInvoicePaymentScalarFieldEnum)[keyof typeof SalesInvoicePaymentScalarFieldEnum]
2026-02-04 13:49:07 +03:30
export const ServiceScalarFieldEnum = {
id: 'id',
2026-02-04 13:49:07 +03:30
name: 'name',
description: 'description',
sku: 'sku',
barcode: 'barcode',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
2026-02-04 13:49:07 +03:30
deletedAt: 'deletedAt',
categoryId: 'categoryId',
baseSalePrice: 'baseSalePrice'
} as const
2026-02-04 13:49:07 +03:30
export type ServiceScalarFieldEnum = (typeof ServiceScalarFieldEnum)[keyof typeof ServiceScalarFieldEnum]
2026-02-04 13:49:07 +03:30
export const ServiceCategoryScalarFieldEnum = {
id: 'id',
2026-02-04 13:49:07 +03:30
name: 'name',
description: 'description',
imageUrl: 'imageUrl',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt'
} as const
2026-02-04 13:49:07 +03:30
export type ServiceCategoryScalarFieldEnum = (typeof ServiceCategoryScalarFieldEnum)[keyof typeof ServiceCategoryScalarFieldEnum]
2026-01-07 15:25:59 +03:30
export const SortOrder = {
asc: 'asc',
desc: 'desc'
} as const
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const NullsOrder = {
first: 'first',
last: 'last'
} as const
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
2026-02-04 13:49:07 +03:30
export const GoodOrderByRelevanceFieldEnum = {
name: 'name',
2026-02-04 13:49:07 +03:30
description: 'description',
sku: 'sku',
localSku: 'localSku',
barcode: 'barcode'
} as const
2026-02-04 13:49:07 +03:30
export type GoodOrderByRelevanceFieldEnum = (typeof GoodOrderByRelevanceFieldEnum)[keyof typeof GoodOrderByRelevanceFieldEnum]
2026-02-04 13:49:07 +03:30
export const GoodCategoryOrderByRelevanceFieldEnum = {
name: 'name',
2026-02-04 13:49:07 +03:30
description: 'description',
imageUrl: 'imageUrl'
} as const
2026-02-04 13:49:07 +03:30
export type GoodCategoryOrderByRelevanceFieldEnum = (typeof GoodCategoryOrderByRelevanceFieldEnum)[keyof typeof GoodCategoryOrderByRelevanceFieldEnum]
export const CustomerOrderByRelevanceFieldEnum = {
firstName: 'firstName',
lastName: 'lastName',
email: 'email',
mobileNumber: 'mobileNumber',
2026-02-04 13:49:07 +03:30
address: 'address'
} as const
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
export const TriggerLogOrderByRelevanceFieldEnum = {
message: 'message',
name: 'name'
} as const
export type TriggerLogOrderByRelevanceFieldEnum = (typeof TriggerLogOrderByRelevanceFieldEnum)[keyof typeof TriggerLogOrderByRelevanceFieldEnum]
2026-02-04 13:49:07 +03:30
export const SalesInvoiceOrderByRelevanceFieldEnum = {
code: 'code',
description: 'description'
} as const
2026-02-04 13:49:07 +03:30
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
2026-02-04 13:49:07 +03:30
export const ServiceOrderByRelevanceFieldEnum = {
name: 'name',
description: 'description',
sku: 'sku',
barcode: 'barcode'
} as const
2026-02-04 13:49:07 +03:30
export type ServiceOrderByRelevanceFieldEnum = (typeof ServiceOrderByRelevanceFieldEnum)[keyof typeof ServiceOrderByRelevanceFieldEnum]
2026-02-04 13:49:07 +03:30
export const ServiceCategoryOrderByRelevanceFieldEnum = {
name: 'name',
description: 'description',
imageUrl: 'imageUrl'
} as const
2026-02-04 13:49:07 +03:30
export type ServiceCategoryOrderByRelevanceFieldEnum = (typeof ServiceCategoryOrderByRelevanceFieldEnum)[keyof typeof ServiceCategoryOrderByRelevanceFieldEnum]
/**
* Field references
*/
/**
* Reference to a field of type 'Int'
*/
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
/**
* Reference to a field of type 'String'
*/
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
/**
* Reference to a field of type 'DateTime'
*/
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
/**
* Reference to a field of type 'Decimal'
*/
export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'>
/**
2026-02-04 13:49:07 +03:30
* Reference to a field of type 'Boolean'
*/
2026-02-04 13:49:07 +03:30
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
/**
* Reference to a field of type 'PaymentMethodType'
*/
export type EnumPaymentMethodTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentMethodType'>
/**
* Reference to a field of type 'Float'
*/
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
/**
* Batch Payload for updateMany & deleteMany & createMany
*/
export type BatchPayload = {
count: number
}
export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>
export type DefaultPrismaClient = PrismaClient
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
export type PrismaClientOptions = ({
/**
* Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
*/
adapter: runtime.SqlDriverAdapterFactory
accelerateUrl?: never
} | {
/**
* Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
*/
accelerateUrl: string
adapter?: never
}) & {
/**
* @default "colorless"
*/
errorFormat?: ErrorFormat
/**
* @example
* ```
* // Shorthand for `emit: 'stdout'`
* log: ['query', 'info', 'warn', 'error']
*
* // Emit as events only
* log: [
* { emit: 'event', level: 'query' },
* { emit: 'event', level: 'info' },
* { emit: 'event', level: 'warn' }
* { emit: 'event', level: 'error' }
* ]
*
* / Emit as events and log to stdout
* og: [
* { emit: 'stdout', level: 'query' },
* { emit: 'stdout', level: 'info' },
* { emit: 'stdout', level: 'warn' }
* { emit: 'stdout', level: 'error' }
*
* ```
* Read more in our [docs](https://pris.ly/d/logging).
*/
log?: (LogLevel | LogDefinition)[]
/**
* The default values for transactionOptions
* maxWait ?= 2000
* timeout ?= 5000
*/
transactionOptions?: {
maxWait?: number
timeout?: number
isolationLevel?: TransactionIsolationLevel
}
/**
* Global configuration for omitting model fields by default.
*
* @example
* ```
* const prisma = new PrismaClient({
* omit: {
* user: {
* password: true
* }
* }
* })
* ```
*/
omit?: GlobalOmitConfig
/**
* SQL commenter plugins that add metadata to SQL queries as comments.
* Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/
*
* @example
* ```
* const prisma = new PrismaClient({
* adapter,
* comments: [
* traceContext(),
* queryInsights(),
* ],
* })
* ```
*/
comments?: runtime.SqlCommenterPlugin[]
}
export type GlobalOmitConfig = {
2026-02-04 13:49:07 +03:30
good?: Prisma.GoodOmit
goodCategory?: Prisma.GoodCategoryOmit
customer?: Prisma.CustomerOmit
triggerLog?: Prisma.TriggerLogOmit
salesInvoice?: Prisma.SalesInvoiceOmit
salesInvoiceItem?: Prisma.SalesInvoiceItemOmit
salesInvoicePayment?: Prisma.SalesInvoicePaymentOmit
2026-02-04 13:49:07 +03:30
service?: Prisma.ServiceOmit
serviceCategory?: Prisma.ServiceCategoryOmit
}
/* Types for Logging */
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
export type LogDefinition = {
level: LogLevel
emit: 'stdout' | 'event'
}
export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
export type GetLogType<T> = CheckIsLogLevel<
T extends LogDefinition ? T['level'] : T
>;
export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
? GetLogType<T[number]>
: never;
export type QueryEvent = {
timestamp: Date
query: string
params: string
duration: number
target: string
}
export type LogEvent = {
timestamp: Date
message: string
target: string
}
/* End Types for Logging */
export type PrismaAction =
| 'findUnique'
| 'findUniqueOrThrow'
| 'findMany'
| 'findFirst'
| 'findFirstOrThrow'
| 'create'
| 'createMany'
| 'createManyAndReturn'
| 'update'
| 'updateMany'
| 'updateManyAndReturn'
| 'upsert'
| 'delete'
| 'deleteMany'
| 'executeRaw'
| 'queryRaw'
| 'aggregate'
| 'count'
| 'runCommandRaw'
| 'findRaw'
| 'groupBy'
/**
* `PrismaClient` proxy available in interactive transactions.
*/
export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>