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 = {
|
|
|
|
|
User: 'User',
|
|
|
|
|
Role: 'Role',
|
|
|
|
|
Product: 'Product',
|
|
|
|
|
ProductInfo: 'ProductInfo',
|
|
|
|
|
ProductBrand: 'ProductBrand',
|
|
|
|
|
ProductCategory: 'ProductCategory',
|
2025-12-05 00:01:44 +03:30
|
|
|
Supplier: 'Supplier',
|
2025-12-04 21:05:57 +03:30
|
|
|
Customer: 'Customer',
|
|
|
|
|
Inventory: 'Inventory',
|
|
|
|
|
Store: 'Store'
|
|
|
|
|
} 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]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const UserScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
mobileNumber: 'mobileNumber',
|
|
|
|
|
password: 'password',
|
|
|
|
|
firstName: 'firstName',
|
|
|
|
|
lastName: 'lastName',
|
|
|
|
|
roleId: 'roleId'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const RoleScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
permissions: 'permissions',
|
|
|
|
|
createdAt: 'createdAt',
|
|
|
|
|
updatedAt: 'updatedAt',
|
|
|
|
|
deletedAt: 'deletedAt'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const ProductScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
sku: 'sku',
|
|
|
|
|
barcode: 'barcode',
|
|
|
|
|
imageUrl: 'imageUrl',
|
|
|
|
|
attachmentId: 'attachmentId',
|
|
|
|
|
unit: 'unit',
|
|
|
|
|
discount: 'discount',
|
|
|
|
|
quantity: 'quantity',
|
|
|
|
|
alertQuantity: 'alertQuantity',
|
|
|
|
|
isActive: 'isActive',
|
|
|
|
|
isFeatured: 'isFeatured',
|
|
|
|
|
createdAt: 'createdAt',
|
|
|
|
|
updatedAt: 'updatedAt',
|
|
|
|
|
deletedAt: 'deletedAt',
|
|
|
|
|
productInfoId: 'productInfoId'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type ProductScalarFieldEnum = (typeof ProductScalarFieldEnum)[keyof typeof ProductScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const ProductInfoScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
productType: 'productType',
|
|
|
|
|
metaData: 'metaData',
|
|
|
|
|
createdAt: 'createdAt',
|
|
|
|
|
updatedAt: 'updatedAt',
|
|
|
|
|
deletedAt: 'deletedAt',
|
|
|
|
|
brandId: 'brandId',
|
|
|
|
|
categoryId: 'categoryId',
|
2025-12-05 00:01:44 +03:30
|
|
|
supplierId: 'supplierId'
|
2025-12-04 21:05:57 +03:30
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type ProductInfoScalarFieldEnum = (typeof ProductInfoScalarFieldEnum)[keyof typeof ProductInfoScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const ProductBrandScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
imageUrl: 'imageUrl',
|
|
|
|
|
createdAt: 'createdAt',
|
|
|
|
|
updatedAt: 'updatedAt',
|
|
|
|
|
deletedAt: 'deletedAt'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type ProductBrandScalarFieldEnum = (typeof ProductBrandScalarFieldEnum)[keyof typeof ProductBrandScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const ProductCategoryScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
imageUrl: 'imageUrl',
|
|
|
|
|
createdAt: 'createdAt',
|
|
|
|
|
updatedAt: 'updatedAt',
|
|
|
|
|
deletedAt: 'deletedAt'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type ProductCategoryScalarFieldEnum = (typeof ProductCategoryScalarFieldEnum)[keyof typeof ProductCategoryScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
2025-12-05 00:01:44 +03:30
|
|
|
export const SupplierScalarFieldEnum = {
|
2025-12-04 21:05:57 +03:30
|
|
|
id: 'id',
|
|
|
|
|
firstName: 'firstName',
|
|
|
|
|
lastName: 'lastName',
|
|
|
|
|
email: 'email',
|
|
|
|
|
mobileNumber: 'mobileNumber',
|
|
|
|
|
address: 'address',
|
|
|
|
|
city: 'city',
|
|
|
|
|
state: 'state',
|
|
|
|
|
country: 'country',
|
|
|
|
|
isActive: 'isActive',
|
|
|
|
|
createdAt: 'createdAt',
|
|
|
|
|
updatedAt: 'updatedAt',
|
|
|
|
|
deletedAt: 'deletedAt'
|
|
|
|
|
} as const
|
|
|
|
|
|
2025-12-05 00:01:44 +03:30
|
|
|
export type SupplierScalarFieldEnum = (typeof SupplierScalarFieldEnum)[keyof typeof SupplierScalarFieldEnum]
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
|
|
|
|
|
export const CustomerScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
firstName: 'firstName',
|
|
|
|
|
lastName: 'lastName',
|
|
|
|
|
email: 'email',
|
|
|
|
|
mobileNumber: 'mobileNumber',
|
|
|
|
|
address: 'address',
|
|
|
|
|
city: 'city',
|
|
|
|
|
state: 'state',
|
|
|
|
|
country: 'country',
|
|
|
|
|
isActive: 'isActive',
|
|
|
|
|
createdAt: 'createdAt',
|
|
|
|
|
updatedAt: 'updatedAt',
|
|
|
|
|
deletedAt: 'deletedAt'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const InventoryScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
name: 'name',
|
|
|
|
|
location: 'location',
|
|
|
|
|
isActive: 'isActive',
|
|
|
|
|
createdAt: 'createdAt',
|
|
|
|
|
updatedAt: 'updatedAt'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type InventoryScalarFieldEnum = (typeof InventoryScalarFieldEnum)[keyof typeof InventoryScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const StoreScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
name: 'name',
|
|
|
|
|
location: 'location',
|
|
|
|
|
isActive: 'isActive',
|
|
|
|
|
createdAt: 'createdAt',
|
|
|
|
|
updatedAt: 'updatedAt'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type StoreScalarFieldEnum = (typeof StoreScalarFieldEnum)[keyof typeof StoreScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const SortOrder = {
|
|
|
|
|
asc: 'asc',
|
|
|
|
|
desc: 'desc'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const NullableJsonNullValueInput = {
|
|
|
|
|
DbNull: 'DbNull',
|
|
|
|
|
JsonNull: 'JsonNull'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const UserOrderByRelevanceFieldEnum = {
|
|
|
|
|
mobileNumber: 'mobileNumber',
|
|
|
|
|
password: 'password',
|
|
|
|
|
firstName: 'firstName',
|
|
|
|
|
lastName: 'lastName'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type UserOrderByRelevanceFieldEnum = (typeof UserOrderByRelevanceFieldEnum)[keyof typeof UserOrderByRelevanceFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const JsonNullValueFilter = {
|
|
|
|
|
DbNull: 'DbNull',
|
|
|
|
|
JsonNull: 'JsonNull',
|
|
|
|
|
AnyNull: 'AnyNull'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const QueryMode = {
|
|
|
|
|
default: 'default',
|
|
|
|
|
insensitive: 'insensitive'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const NullsOrder = {
|
|
|
|
|
first: 'first',
|
|
|
|
|
last: 'last'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const RoleOrderByRelevanceFieldEnum = {
|
|
|
|
|
name: 'name',
|
|
|
|
|
description: 'description'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type RoleOrderByRelevanceFieldEnum = (typeof RoleOrderByRelevanceFieldEnum)[keyof typeof RoleOrderByRelevanceFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const ProductOrderByRelevanceFieldEnum = {
|
|
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
sku: 'sku',
|
|
|
|
|
barcode: 'barcode',
|
|
|
|
|
imageUrl: 'imageUrl',
|
|
|
|
|
unit: 'unit'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type ProductOrderByRelevanceFieldEnum = (typeof ProductOrderByRelevanceFieldEnum)[keyof typeof ProductOrderByRelevanceFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const ProductInfoOrderByRelevanceFieldEnum = {
|
|
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
productType: 'productType'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type ProductInfoOrderByRelevanceFieldEnum = (typeof ProductInfoOrderByRelevanceFieldEnum)[keyof typeof ProductInfoOrderByRelevanceFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const ProductBrandOrderByRelevanceFieldEnum = {
|
|
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
imageUrl: 'imageUrl'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type ProductBrandOrderByRelevanceFieldEnum = (typeof ProductBrandOrderByRelevanceFieldEnum)[keyof typeof ProductBrandOrderByRelevanceFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const ProductCategoryOrderByRelevanceFieldEnum = {
|
|
|
|
|
name: 'name',
|
|
|
|
|
description: 'description',
|
|
|
|
|
imageUrl: 'imageUrl'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type ProductCategoryOrderByRelevanceFieldEnum = (typeof ProductCategoryOrderByRelevanceFieldEnum)[keyof typeof ProductCategoryOrderByRelevanceFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
2025-12-05 00:01:44 +03:30
|
|
|
export const SupplierOrderByRelevanceFieldEnum = {
|
2025-12-04 21:05:57 +03:30
|
|
|
firstName: 'firstName',
|
|
|
|
|
lastName: 'lastName',
|
|
|
|
|
email: 'email',
|
|
|
|
|
mobileNumber: 'mobileNumber',
|
|
|
|
|
address: 'address',
|
|
|
|
|
city: 'city',
|
|
|
|
|
state: 'state',
|
|
|
|
|
country: 'country'
|
|
|
|
|
} as const
|
|
|
|
|
|
2025-12-05 00:01:44 +03:30
|
|
|
export type SupplierOrderByRelevanceFieldEnum = (typeof SupplierOrderByRelevanceFieldEnum)[keyof typeof SupplierOrderByRelevanceFieldEnum]
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
|
|
|
|
|
export const CustomerOrderByRelevanceFieldEnum = {
|
|
|
|
|
firstName: 'firstName',
|
|
|
|
|
lastName: 'lastName',
|
|
|
|
|
email: 'email',
|
|
|
|
|
mobileNumber: 'mobileNumber',
|
|
|
|
|
address: 'address',
|
|
|
|
|
city: 'city',
|
|
|
|
|
state: 'state',
|
|
|
|
|
country: 'country'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const InventoryOrderByRelevanceFieldEnum = {
|
|
|
|
|
name: 'name',
|
|
|
|
|
location: 'location'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type InventoryOrderByRelevanceFieldEnum = (typeof InventoryOrderByRelevanceFieldEnum)[keyof typeof InventoryOrderByRelevanceFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const StoreOrderByRelevanceFieldEnum = {
|
|
|
|
|
name: 'name',
|
|
|
|
|
location: 'location'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type StoreOrderByRelevanceFieldEnum = (typeof StoreOrderByRelevanceFieldEnum)[keyof typeof StoreOrderByRelevanceFieldEnum]
|
|
|
|
|
|