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
|
|
|
|
|
/*
|
|
|
|
|
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
|
|
|
|
|
* If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
|
|
|
|
|
*
|
|
|
|
|
* 🟢 You can import this file directly.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import * as process from 'node:process'
|
|
|
|
|
import * as path from 'node:path'
|
|
|
|
|
|
|
|
|
|
import * as runtime from "@prisma/client/runtime/client"
|
|
|
|
|
import * as $Enums from "./enums.js"
|
|
|
|
|
import * as $Class from "./internal/class.js"
|
|
|
|
|
import * as Prisma from "./internal/prismaNamespace.js"
|
|
|
|
|
|
|
|
|
|
export * as $Enums from './enums.js'
|
|
|
|
|
export * from "./enums.js"
|
|
|
|
|
/**
|
|
|
|
|
* ## Prisma Client
|
|
|
|
|
*
|
|
|
|
|
* Type-safe database client for TypeScript
|
|
|
|
|
* @example
|
|
|
|
|
* ```
|
|
|
|
|
* const prisma = new PrismaClient()
|
|
|
|
|
* // Fetch zero or more Users
|
|
|
|
|
* const users = await prisma.user.findMany()
|
|
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
* Read more in our [docs](https://pris.ly/d/client).
|
|
|
|
|
*/
|
|
|
|
|
export const PrismaClient = $Class.getPrismaClientClass()
|
|
|
|
|
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
|
|
|
|
export { Prisma }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Model User
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type User = Prisma.UserModel
|
|
|
|
|
/**
|
|
|
|
|
* Model Role
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type Role = Prisma.RoleModel
|
|
|
|
|
/**
|
2025-12-06 17:48:10 +03:30
|
|
|
* Model ProductVariant
|
2025-12-04 21:05:57 +03:30
|
|
|
*
|
|
|
|
|
*/
|
2025-12-06 17:48:10 +03:30
|
|
|
export type ProductVariant = Prisma.ProductVariantModel
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
2025-12-06 17:48:10 +03:30
|
|
|
* Model Product
|
2025-12-04 21:05:57 +03:30
|
|
|
*
|
|
|
|
|
*/
|
2025-12-06 17:48:10 +03:30
|
|
|
export type Product = Prisma.ProductModel
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
|
|
|
|
* Model ProductBrand
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type ProductBrand = Prisma.ProductBrandModel
|
|
|
|
|
/**
|
|
|
|
|
* Model ProductCategory
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type ProductCategory = Prisma.ProductCategoryModel
|
|
|
|
|
/**
|
2025-12-05 00:01:44 +03:30
|
|
|
* Model Supplier
|
2025-12-04 21:05:57 +03:30
|
|
|
*
|
|
|
|
|
*/
|
2025-12-05 00:01:44 +03:30
|
|
|
export type Supplier = Prisma.SupplierModel
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
|
|
|
|
* Model Customer
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type Customer = Prisma.CustomerModel
|
|
|
|
|
/**
|
|
|
|
|
* Model Inventory
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type Inventory = Prisma.InventoryModel
|
|
|
|
|
/**
|
|
|
|
|
* Model Store
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type Store = Prisma.StoreModel
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* Model ProductCharge
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type ProductCharge = Prisma.ProductChargeModel
|
|
|
|
|
/**
|
|
|
|
|
* Model Order
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type Order = Prisma.OrderModel
|
|
|
|
|
/**
|
|
|
|
|
* Model PurchaseReceipt
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type PurchaseReceipt = Prisma.PurchaseReceiptModel
|
|
|
|
|
/**
|
|
|
|
|
* Model PurchaseReceiptItem
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type PurchaseReceiptItem = Prisma.PurchaseReceiptItemModel
|
|
|
|
|
/**
|
|
|
|
|
* Model SalesInvoice
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoice = Prisma.SalesInvoiceModel
|
|
|
|
|
/**
|
|
|
|
|
* Model SalesInvoiceItem
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
|
|
|
|
|
/**
|
|
|
|
|
* Model StockMovement
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type StockMovement = Prisma.StockMovementModel
|
|
|
|
|
/**
|
|
|
|
|
* Model StockBalance
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type StockBalance = Prisma.StockBalanceModel
|
|
|
|
|
/**
|
|
|
|
|
* Model InventoryTransfer
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type InventoryTransfer = Prisma.InventoryTransferModel
|
|
|
|
|
/**
|
|
|
|
|
* Model InventoryTransferItem
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type InventoryTransferItem = Prisma.InventoryTransferItemModel
|
|
|
|
|
/**
|
|
|
|
|
* Model StockAdjustment
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type StockAdjustment = Prisma.StockAdjustmentModel
|
|
|
|
|
/**
|
|
|
|
|
* Model inventory_overview
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type inventory_overview = Prisma.inventory_overviewModel
|
|
|
|
|
/**
|
|
|
|
|
* Model stock_cardex
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type stock_cardex = Prisma.stock_cardexModel
|
|
|
|
|
/**
|
|
|
|
|
* Model stock_view
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type stock_view = Prisma.stock_viewModel
|