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! 🛑
|
|
|
|
|
*
|
|
|
|
|
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.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/index-browser"
|
|
|
|
|
|
|
|
|
|
export type * from '../models.js'
|
|
|
|
|
export type * from './prismaNamespace.js'
|
|
|
|
|
|
|
|
|
|
export const Decimal = runtime.Decimal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const ModelName = {
|
2026-02-04 13:49:07 +03:30
|
|
|
Good: 'Good',
|
|
|
|
|
GoodCategory: 'GoodCategory',
|
2026-01-04 13:45:26 +03:30
|
|
|
Customer: 'Customer',
|
2025-12-24 21:24:59 +03:30
|
|
|
TriggerLog: 'TriggerLog',
|
2026-01-04 13:45:26 +03:30
|
|
|
SalesInvoice: 'SalesInvoice',
|
|
|
|
|
SalesInvoiceItem: 'SalesInvoiceItem',
|
|
|
|
|
SalesInvoicePayment: 'SalesInvoicePayment',
|
2026-02-04 13:49:07 +03:30
|
|
|
Service: 'Service',
|
|
|
|
|
ServiceCategory: 'ServiceCategory'
|
2025-12-04 21:05:57 +03:30
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Enums
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export const TransactionIsolationLevel = {
|
|
|
|
|
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 = {
|
2025-12-04 21:05:57 +03:30
|
|
|
id: 'id',
|
|
|
|
|
name: 'name',
|
2026-01-04 13:45:26 +03:30
|
|
|
description: 'description',
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: 'sku',
|
|
|
|
|
localSku: 'localSku',
|
|
|
|
|
barcode: 'barcode',
|
2025-12-04 21:05:57 +03:30
|
|
|
createdAt: 'createdAt',
|
|
|
|
|
updatedAt: 'updatedAt',
|
|
|
|
|
deletedAt: 'deletedAt',
|
2026-02-04 13:49:07 +03:30
|
|
|
categoryId: 'categoryId',
|
|
|
|
|
baseSalePrice: 'baseSalePrice'
|
2025-12-24 21:24:59 +03:30
|
|
|
} as const
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type GoodScalarFieldEnum = (typeof GoodScalarFieldEnum)[keyof typeof GoodScalarFieldEnum]
|
2025-12-24 21:24:59 +03:30
|
|
|
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export const GoodCategoryScalarFieldEnum = {
|
2025-12-04 21:05:57 +03:30
|
|
|
id: 'id',
|
|
|
|
|
name: 'name',
|
2025-12-26 22:09:46 +03:30
|
|
|
description: 'description',
|
2026-02-04 13:49:07 +03:30
|
|
|
imageUrl: 'imageUrl',
|
2025-12-24 21:24:59 +03:30
|
|
|
createdAt: 'createdAt',
|
2025-12-26 22:09:46 +03:30
|
|
|
updatedAt: 'updatedAt',
|
|
|
|
|
deletedAt: 'deletedAt'
|
2025-12-24 21:24:59 +03:30
|
|
|
} as const
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type GoodCategoryScalarFieldEnum = (typeof GoodCategoryScalarFieldEnum)[keyof typeof GoodCategoryScalarFieldEnum]
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export const CustomerScalarFieldEnum = {
|
2025-12-09 13:59:07 +03:30
|
|
|
id: 'id',
|
2026-01-04 13:45:26 +03:30
|
|
|
firstName: 'firstName',
|
|
|
|
|
lastName: 'lastName',
|
|
|
|
|
email: 'email',
|
|
|
|
|
mobileNumber: 'mobileNumber',
|
|
|
|
|
address: 'address',
|
|
|
|
|
isActive: 'isActive',
|
2025-12-24 21:24:59 +03:30
|
|
|
createdAt: 'createdAt',
|
2026-01-04 13:45:26 +03:30
|
|
|
updatedAt: 'updatedAt',
|
|
|
|
|
deletedAt: 'deletedAt'
|
2025-12-24 21:24:59 +03:30
|
|
|
} as const
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
|
2025-12-24 21:24:59 +03:30
|
|
|
|
|
|
|
|
|
|
|
|
|
export const TriggerLogScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
message: 'message',
|
|
|
|
|
createdAt: 'createdAt',
|
|
|
|
|
name: 'name'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type TriggerLogScalarFieldEnum = (typeof TriggerLogScalarFieldEnum)[keyof typeof TriggerLogScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
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'
|
2026-01-04 13:45:26 +03:30
|
|
|
} 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'
|
2026-01-04 13:45:26 +03:30
|
|
|
} 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 = {
|
2025-12-09 13:59:07 +03:30
|
|
|
id: 'id',
|
2026-02-04 13:49:07 +03:30
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
sku: 'sku',
|
|
|
|
|
barcode: 'barcode',
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt: 'createdAt',
|
2025-12-24 21:24:59 +03:30
|
|
|
updatedAt: 'updatedAt',
|
2026-02-04 13:49:07 +03:30
|
|
|
deletedAt: 'deletedAt',
|
|
|
|
|
categoryId: 'categoryId',
|
|
|
|
|
baseSalePrice: 'baseSalePrice'
|
2026-01-04 13:45:26 +03:30
|
|
|
} as const
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type ServiceScalarFieldEnum = (typeof ServiceScalarFieldEnum)[keyof typeof ServiceScalarFieldEnum]
|
2026-01-04 13:45:26 +03:30
|
|
|
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export const ServiceCategoryScalarFieldEnum = {
|
2025-12-26 22:09:46 +03:30
|
|
|
id: 'id',
|
2026-02-04 13:49:07 +03:30
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
imageUrl: 'imageUrl',
|
2025-12-26 22:09:46 +03:30
|
|
|
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
|
|
|
|
|
|
|
|
|
2025-12-04 21:05:57 +03:30
|
|
|
export const SortOrder = {
|
|
|
|
|
asc: 'asc',
|
|
|
|
|
desc: 'desc'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
|
|
|
|
|
2025-12-09 13:59:07 +03:30
|
|
|
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 = {
|
2025-12-04 21:05:57 +03:30
|
|
|
name: 'name',
|
2026-02-04 13:49:07 +03:30
|
|
|
description: 'description',
|
|
|
|
|
sku: 'sku',
|
|
|
|
|
localSku: 'localSku',
|
|
|
|
|
barcode: 'barcode'
|
2025-12-04 21:05:57 +03:30
|
|
|
} as const
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type GoodOrderByRelevanceFieldEnum = (typeof GoodOrderByRelevanceFieldEnum)[keyof typeof GoodOrderByRelevanceFieldEnum]
|
2025-12-24 21:24:59 +03:30
|
|
|
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export const GoodCategoryOrderByRelevanceFieldEnum = {
|
2025-12-24 21:24:59 +03:30
|
|
|
name: 'name',
|
2026-02-04 13:49:07 +03:30
|
|
|
description: 'description',
|
|
|
|
|
imageUrl: 'imageUrl'
|
2026-01-04 13:45:26 +03:30
|
|
|
} as const
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type GoodCategoryOrderByRelevanceFieldEnum = (typeof GoodCategoryOrderByRelevanceFieldEnum)[keyof typeof GoodCategoryOrderByRelevanceFieldEnum]
|
2026-01-04 13:45:26 +03:30
|
|
|
|
|
|
|
|
|
2025-12-04 21:05:57 +03:30
|
|
|
export const CustomerOrderByRelevanceFieldEnum = {
|
|
|
|
|
firstName: 'firstName',
|
|
|
|
|
lastName: 'lastName',
|
|
|
|
|
email: 'email',
|
|
|
|
|
mobileNumber: 'mobileNumber',
|
2026-02-04 13:49:07 +03:30
|
|
|
address: 'address'
|
2025-12-04 21:05:57 +03:30
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
2025-12-24 21:24:59 +03:30
|
|
|
export const TriggerLogOrderByRelevanceFieldEnum = {
|
|
|
|
|
message: 'message',
|
|
|
|
|
name: 'name'
|
2025-12-09 13:59:07 +03:30
|
|
|
} as const
|
|
|
|
|
|
2025-12-24 21:24:59 +03:30
|
|
|
export type TriggerLogOrderByRelevanceFieldEnum = (typeof TriggerLogOrderByRelevanceFieldEnum)[keyof typeof TriggerLogOrderByRelevanceFieldEnum]
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export const SalesInvoiceOrderByRelevanceFieldEnum = {
|
|
|
|
|
code: 'code',
|
|
|
|
|
description: 'description'
|
2025-12-09 13:59:07 +03:30
|
|
|
} as const
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export const ServiceOrderByRelevanceFieldEnum = {
|
2025-12-24 21:24:59 +03:30
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
sku: 'sku',
|
|
|
|
|
barcode: 'barcode'
|
2025-12-10 16:54:08 +03:30
|
|
|
} as const
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type ServiceOrderByRelevanceFieldEnum = (typeof ServiceOrderByRelevanceFieldEnum)[keyof typeof ServiceOrderByRelevanceFieldEnum]
|
2025-12-10 16:54:08 +03:30
|
|
|
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export const ServiceCategoryOrderByRelevanceFieldEnum = {
|
2025-12-24 21:24:59 +03:30
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
imageUrl: 'imageUrl'
|
2025-12-09 13:59:07 +03:30
|
|
|
} as const
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type ServiceCategoryOrderByRelevanceFieldEnum = (typeof ServiceCategoryOrderByRelevanceFieldEnum)[keyof typeof ServiceCategoryOrderByRelevanceFieldEnum]
|
2025-12-26 22:09:46 +03:30
|
|
|
|