
/* !!! This is code generated by Prisma. Do not edit directly. !!!
/* eslint-disable */
// biome-ignore-all lint: generated file

Object.defineProperty(exports, "__esModule", { value: true });

const {
  PrismaClientKnownRequestError,
  PrismaClientUnknownRequestError,
  PrismaClientRustPanicError,
  PrismaClientInitializationError,
  PrismaClientValidationError,
  getPrismaClient,
  sqltag,
  empty,
  join,
  raw,
  skip,
  Decimal,
  Debug,
  DbNull,
  JsonNull,
  AnyNull,
  NullTypes,
  makeStrictEnum,
  Extensions,
  warnOnce,
  defineDmmfProperty,
  Public,
  getRuntime,
  createParam,
} = require('@prisma/client/runtime/client.js')


const Prisma = {}

exports.Prisma = Prisma
exports.$Enums = {}

/**
 * Prisma Client JS version: 7.7.0
 * Query Engine version: 75cbdc1eb7150937890ad5465d861175c6624711
 */
Prisma.prismaVersion = {
  client: "7.7.0",
  engine: "75cbdc1eb7150937890ad5465d861175c6624711"
}

Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
Prisma.PrismaClientInitializationError = PrismaClientInitializationError
Prisma.PrismaClientValidationError = PrismaClientValidationError
Prisma.Decimal = Decimal

/**
 * Re-export of sql-template-tag
 */
Prisma.sql = sqltag
Prisma.empty = empty
Prisma.join = join
Prisma.raw = raw
Prisma.validator = Public.validator

/**
* Extensions
*/
Prisma.getExtensionContext = Extensions.getExtensionContext
Prisma.defineExtension = Extensions.defineExtension

/**
 * Shorthand utilities for JSON filtering
 */
Prisma.DbNull = DbNull
Prisma.JsonNull = JsonNull
Prisma.AnyNull = AnyNull

Prisma.NullTypes = NullTypes




  const path = require('path')

/**
 * Enums
 */
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
  ReadUncommitted: 'ReadUncommitted',
  ReadCommitted: 'ReadCommitted',
  RepeatableRead: 'RepeatableRead',
  Serializable: 'Serializable'
});

exports.Prisma.ProductScalarFieldEnum = {
  id: 'id',
  nombre: 'nombre',
  tipo: 'tipo',
  descripcion: 'descripcion',
  especificaciones: 'especificaciones',
  imagen: 'imagen',
  imagenesAdicionales: 'imagenesAdicionales',
  precioBase: 'precioBase',
  preciosPorVolumen: 'preciosPorVolumen',
  activo: 'activo',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
};

exports.Prisma.ColorScalarFieldEnum = {
  id: 'id',
  nombre: 'nombre',
  codigo: 'codigo',
  disponible: 'disponible'
};

exports.Prisma.QualityScalarFieldEnum = {
  id: 'id',
  nombre: 'nombre',
  codigoInterno: 'codigoInterno',
  precioAdicional: 'precioAdicional',
  normas: 'normas'
};

exports.Prisma.ClienteScalarFieldEnum = {
  id: 'id',
  codigoERP: 'codigoERP',
  nombre: 'nombre',
  rnc: 'rnc',
  telefono: 'telefono',
  direccion: 'direccion',
  limiteCredito: 'limiteCredito',
  balanceActual: 'balanceActual',
  activo: 'activo',
  ultimaActualizacion: 'ultimaActualizacion',
  company_id: 'company_id'
};

exports.Prisma.SortOrder = {
  asc: 'asc',
  desc: 'desc'
};

exports.Prisma.JsonNullValueInput = {
  JsonNull: Prisma.JsonNull
};

exports.Prisma.QueryMode = {
  default: 'default',
  insensitive: 'insensitive'
};

exports.Prisma.JsonNullValueFilter = {
  DbNull: Prisma.DbNull,
  JsonNull: Prisma.JsonNull,
  AnyNull: Prisma.AnyNull
};

exports.Prisma.NullsOrder = {
  first: 'first',
  last: 'last'
};


exports.Prisma.ModelName = {
  Product: 'Product',
  Color: 'Color',
  Quality: 'Quality',
  Cliente: 'Cliente'
};
/**
 * Create the Client
 */
const config = {
  "previewFeatures": [],
  "clientVersion": "7.7.0",
  "engineVersion": "75cbdc1eb7150937890ad5465d861175c6624711",
  "activeProvider": "postgresql",
  "inlineSchema": "generator client {\n  provider = \"prisma-client-js\"\n}\n\ndatasource db {\n  provider = \"postgresql\"\n}\n\nmodel Product {\n  id                  String    @id @default(cuid())\n  nombre              String\n  tipo                String\n  descripcion         String\n  especificaciones    Json\n  coloresDisponibles  Color[]\n  tiposCalidad        Quality[]\n  imagen              String\n  imagenesAdicionales String[]\n  precioBase          Float\n  preciosPorVolumen   Json\n  activo              Boolean   @default(true)\n  createdAt           DateTime  @default(now())\n  updatedAt           DateTime  @updatedAt\n}\n\nmodel Color {\n  id         String    @id @default(cuid())\n  nombre     String\n  codigo     String\n  disponible Boolean   @default(true)\n  productos  Product[]\n}\n\nmodel Quality {\n  id              String    @id @default(cuid())\n  nombre          String\n  codigoInterno   String\n  precioAdicional Float     @default(0)\n  normas          String[]\n  productos       Product[]\n}\n\nmodel Cliente {\n  id                  String   @id @default(cuid())\n  codigoERP           String   @unique\n  nombre              String\n  rnc                 String\n  telefono            String\n  direccion           String\n  limiteCredito       Float\n  balanceActual       Float\n  activo              Boolean  @default(true)\n  ultimaActualizacion DateTime @default(now())\n  company_id          Int?     @default(11)\n}\n"
}

config.runtimeDataModel = JSON.parse("{\"models\":{\"Product\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"nombre\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tipo\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"descripcion\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"especificaciones\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"coloresDisponibles\",\"kind\":\"object\",\"type\":\"Color\",\"relationName\":\"ColorToProduct\"},{\"name\":\"tiposCalidad\",\"kind\":\"object\",\"type\":\"Quality\",\"relationName\":\"ProductToQuality\"},{\"name\":\"imagen\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"imagenesAdicionales\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"precioBase\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"preciosPorVolumen\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"activo\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"Color\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"nombre\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"codigo\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"disponible\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"productos\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ColorToProduct\"}],\"dbName\":null},\"Quality\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"nombre\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"codigoInterno\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"precioAdicional\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"normas\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"productos\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ProductToQuality\"}],\"dbName\":null},\"Cliente\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"codigoERP\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"nombre\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rnc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"telefono\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"direccion\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"limiteCredito\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"balanceActual\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"activo\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"ultimaActualizacion\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"company_id\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}")
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
config.parameterizationSchema = {
  strings: JSON.parse("[\"where\",\"orderBy\",\"cursor\",\"productos\",\"_count\",\"coloresDisponibles\",\"tiposCalidad\",\"Product.findUnique\",\"Product.findUniqueOrThrow\",\"Product.findFirst\",\"Product.findFirstOrThrow\",\"Product.findMany\",\"data\",\"Product.createOne\",\"Product.createMany\",\"Product.createManyAndReturn\",\"Product.updateOne\",\"Product.updateMany\",\"Product.updateManyAndReturn\",\"create\",\"update\",\"Product.upsertOne\",\"Product.deleteOne\",\"Product.deleteMany\",\"having\",\"_avg\",\"_sum\",\"_min\",\"_max\",\"Product.groupBy\",\"Product.aggregate\",\"Color.findUnique\",\"Color.findUniqueOrThrow\",\"Color.findFirst\",\"Color.findFirstOrThrow\",\"Color.findMany\",\"Color.createOne\",\"Color.createMany\",\"Color.createManyAndReturn\",\"Color.updateOne\",\"Color.updateMany\",\"Color.updateManyAndReturn\",\"Color.upsertOne\",\"Color.deleteOne\",\"Color.deleteMany\",\"Color.groupBy\",\"Color.aggregate\",\"Quality.findUnique\",\"Quality.findUniqueOrThrow\",\"Quality.findFirst\",\"Quality.findFirstOrThrow\",\"Quality.findMany\",\"Quality.createOne\",\"Quality.createMany\",\"Quality.createManyAndReturn\",\"Quality.updateOne\",\"Quality.updateMany\",\"Quality.updateManyAndReturn\",\"Quality.upsertOne\",\"Quality.deleteOne\",\"Quality.deleteMany\",\"Quality.groupBy\",\"Quality.aggregate\",\"Cliente.findUnique\",\"Cliente.findUniqueOrThrow\",\"Cliente.findFirst\",\"Cliente.findFirstOrThrow\",\"Cliente.findMany\",\"Cliente.createOne\",\"Cliente.createMany\",\"Cliente.createManyAndReturn\",\"Cliente.updateOne\",\"Cliente.updateMany\",\"Cliente.updateManyAndReturn\",\"Cliente.upsertOne\",\"Cliente.deleteOne\",\"Cliente.deleteMany\",\"Cliente.groupBy\",\"Cliente.aggregate\",\"AND\",\"OR\",\"NOT\",\"id\",\"codigoERP\",\"nombre\",\"rnc\",\"telefono\",\"direccion\",\"limiteCredito\",\"balanceActual\",\"activo\",\"ultimaActualizacion\",\"company_id\",\"equals\",\"in\",\"notIn\",\"lt\",\"lte\",\"gt\",\"gte\",\"not\",\"contains\",\"startsWith\",\"endsWith\",\"codigoInterno\",\"precioAdicional\",\"normas\",\"has\",\"hasEvery\",\"hasSome\",\"codigo\",\"disponible\",\"tipo\",\"descripcion\",\"especificaciones\",\"imagen\",\"imagenesAdicionales\",\"precioBase\",\"preciosPorVolumen\",\"createdAt\",\"updatedAt\",\"string_contains\",\"string_starts_with\",\"string_ends_with\",\"array_starts_with\",\"array_ends_with\",\"array_contains\",\"every\",\"some\",\"none\",\"connectOrCreate\",\"upsert\",\"set\",\"disconnect\",\"delete\",\"connect\",\"updateMany\",\"deleteMany\",\"push\",\"increment\",\"decrement\",\"multiply\",\"divide\"]"),
  graph: " "
}
config.compilerWasm = {
      getRuntime: async () => require('./query_compiler_fast_bg.js'),
      getQueryCompilerWasmModule: async () => {
        const { Buffer } = require('node:buffer')
        const { wasm } = require('./query_compiler_fast_bg.wasm-base64.js')
        const queryCompilerWasmFileBytes = Buffer.from(wasm, 'base64')

        return new WebAssembly.Module(queryCompilerWasmFileBytes)
      },
      importName: './query_compiler_fast_bg.js',
    }

const PrismaClient = getPrismaClient(config)
exports.PrismaClient = PrismaClient
Object.assign(exports, Prisma)
