424 lines
68 KiB
JavaScript
424 lines
68 KiB
JavaScript
|
|
|
|||
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|||
|
|
|
|||
|
|
const {
|
|||
|
|
PrismaClientKnownRequestError,
|
|||
|
|
PrismaClientUnknownRequestError,
|
|||
|
|
PrismaClientRustPanicError,
|
|||
|
|
PrismaClientInitializationError,
|
|||
|
|
PrismaClientValidationError,
|
|||
|
|
NotFoundError,
|
|||
|
|
getPrismaClient,
|
|||
|
|
sqltag,
|
|||
|
|
empty,
|
|||
|
|
join,
|
|||
|
|
raw,
|
|||
|
|
skip,
|
|||
|
|
Decimal,
|
|||
|
|
Debug,
|
|||
|
|
objectEnumValues,
|
|||
|
|
makeStrictEnum,
|
|||
|
|
Extensions,
|
|||
|
|
warnOnce,
|
|||
|
|
defineDmmfProperty,
|
|||
|
|
Public,
|
|||
|
|
getRuntime
|
|||
|
|
} = require('@prisma/client/runtime/library.js')
|
|||
|
|
|
|||
|
|
|
|||
|
|
const Prisma = {}
|
|||
|
|
|
|||
|
|
exports.Prisma = Prisma
|
|||
|
|
exports.$Enums = {}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Prisma Client JS version: 5.22.0
|
|||
|
|
* Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
|
|||
|
|
*/
|
|||
|
|
Prisma.prismaVersion = {
|
|||
|
|
client: "5.22.0",
|
|||
|
|
engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
|||
|
|
Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
|
|||
|
|
Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
|
|||
|
|
Prisma.PrismaClientInitializationError = PrismaClientInitializationError
|
|||
|
|
Prisma.PrismaClientValidationError = PrismaClientValidationError
|
|||
|
|
Prisma.NotFoundError = NotFoundError
|
|||
|
|
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 = objectEnumValues.instances.DbNull
|
|||
|
|
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|||
|
|
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|||
|
|
|
|||
|
|
Prisma.NullTypes = {
|
|||
|
|
DbNull: objectEnumValues.classes.DbNull,
|
|||
|
|
JsonNull: objectEnumValues.classes.JsonNull,
|
|||
|
|
AnyNull: objectEnumValues.classes.AnyNull
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
const path = require('path')
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Enums
|
|||
|
|
*/
|
|||
|
|
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|||
|
|
ReadUncommitted: 'ReadUncommitted',
|
|||
|
|
ReadCommitted: 'ReadCommitted',
|
|||
|
|
RepeatableRead: 'RepeatableRead',
|
|||
|
|
Serializable: 'Serializable'
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
exports.Prisma.PriceBookScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
code: 'code',
|
|||
|
|
name: 'name',
|
|||
|
|
baseDate: 'baseDate',
|
|||
|
|
approvedBy: 'approvedBy',
|
|||
|
|
effectiveDate: 'effectiveDate',
|
|||
|
|
isActive: 'isActive',
|
|||
|
|
createdAt: 'createdAt',
|
|||
|
|
updatedAt: 'updatedAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.PriceTableScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
priceBookId: 'priceBookId',
|
|||
|
|
tableNumber: 'tableNumber',
|
|||
|
|
name: 'name',
|
|||
|
|
unit: 'unit',
|
|||
|
|
notes: 'notes',
|
|||
|
|
createdAt: 'createdAt',
|
|||
|
|
updatedAt: 'updatedAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.PriceItemScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
priceBookId: 'priceBookId',
|
|||
|
|
priceTableId: 'priceTableId',
|
|||
|
|
paragraph: 'paragraph',
|
|||
|
|
workType: 'workType',
|
|||
|
|
description: 'description',
|
|||
|
|
priceField1: 'priceField1',
|
|||
|
|
priceOffice1: 'priceOffice1',
|
|||
|
|
priceField2: 'priceField2',
|
|||
|
|
priceOffice2: 'priceOffice2',
|
|||
|
|
priceField3: 'priceField3',
|
|||
|
|
priceOffice3: 'priceOffice3',
|
|||
|
|
priceSimple: 'priceSimple',
|
|||
|
|
attributes: 'attributes',
|
|||
|
|
createdAt: 'createdAt',
|
|||
|
|
updatedAt: 'updatedAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.CoefficientScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
type: 'type',
|
|||
|
|
code: 'code',
|
|||
|
|
name: 'name',
|
|||
|
|
value: 'value',
|
|||
|
|
description: 'description',
|
|||
|
|
conditions: 'conditions',
|
|||
|
|
isActive: 'isActive',
|
|||
|
|
createdAt: 'createdAt',
|
|||
|
|
updatedAt: 'updatedAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.InflationIndexScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
baseDate: 'baseDate',
|
|||
|
|
effectiveFrom: 'effectiveFrom',
|
|||
|
|
effectiveTo: 'effectiveTo',
|
|||
|
|
indexValue: 'indexValue',
|
|||
|
|
documentRef: 'documentRef',
|
|||
|
|
isActive: 'isActive',
|
|||
|
|
createdAt: 'createdAt',
|
|||
|
|
updatedAt: 'updatedAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.UserScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
email: 'email',
|
|||
|
|
passwordHash: 'passwordHash',
|
|||
|
|
name: 'name',
|
|||
|
|
createdAt: 'createdAt',
|
|||
|
|
updatedAt: 'updatedAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.SurveyDirectionScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
code: 'code',
|
|||
|
|
name: 'name',
|
|||
|
|
shortName: 'shortName',
|
|||
|
|
isActive: 'isActive'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.EstimateScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
number: 'number',
|
|||
|
|
directionId: 'directionId',
|
|||
|
|
ownerId: 'ownerId',
|
|||
|
|
objectName: 'objectName',
|
|||
|
|
customer: 'customer',
|
|||
|
|
executor: 'executor',
|
|||
|
|
totalFieldWorks: 'totalFieldWorks',
|
|||
|
|
totalOfficeWorks: 'totalOfficeWorks',
|
|||
|
|
totalLaboratory: 'totalLaboratory',
|
|||
|
|
subtotal: 'subtotal',
|
|||
|
|
regionalCoef: 'regionalCoef',
|
|||
|
|
inflationIndex: 'inflationIndex',
|
|||
|
|
inflationDocRef: 'inflationDocRef',
|
|||
|
|
companyCoef: 'companyCoef',
|
|||
|
|
executorCoef: 'executorCoef',
|
|||
|
|
withVat: 'withVat',
|
|||
|
|
totalWithoutVat: 'totalWithoutVat',
|
|||
|
|
vatRate: 'vatRate',
|
|||
|
|
vatAmount: 'vatAmount',
|
|||
|
|
totalWithVat: 'totalWithVat',
|
|||
|
|
status: 'status',
|
|||
|
|
createdAt: 'createdAt',
|
|||
|
|
updatedAt: 'updatedAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.EstimateVersionScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
estimateId: 'estimateId',
|
|||
|
|
versionNumber: 'versionNumber',
|
|||
|
|
snapshot: 'snapshot',
|
|||
|
|
createdAt: 'createdAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.EstimateShareScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
estimateId: 'estimateId',
|
|||
|
|
ownerId: 'ownerId',
|
|||
|
|
sharedWithId: 'sharedWithId',
|
|||
|
|
createdAt: 'createdAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.EstimateItemScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
estimateId: 'estimateId',
|
|||
|
|
orderNumber: 'orderNumber',
|
|||
|
|
sectionType: 'sectionType',
|
|||
|
|
priceItemId: 'priceItemId',
|
|||
|
|
workName: 'workName',
|
|||
|
|
justification: 'justification',
|
|||
|
|
basePrice: 'basePrice',
|
|||
|
|
quantity: 'quantity',
|
|||
|
|
unit: 'unit',
|
|||
|
|
coef1: 'coef1',
|
|||
|
|
coef1Desc: 'coef1Desc',
|
|||
|
|
coef2: 'coef2',
|
|||
|
|
coef2Desc: 'coef2Desc',
|
|||
|
|
coef3: 'coef3',
|
|||
|
|
coef3Desc: 'coef3Desc',
|
|||
|
|
totalPrice: 'totalPrice',
|
|||
|
|
createdAt: 'createdAt',
|
|||
|
|
updatedAt: 'updatedAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.EstimateTotalScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
estimateId: 'estimateId',
|
|||
|
|
orderNumber: 'orderNumber',
|
|||
|
|
label: 'label',
|
|||
|
|
description: 'description',
|
|||
|
|
baseValue: 'baseValue',
|
|||
|
|
coefficient: 'coefficient',
|
|||
|
|
resultValue: 'resultValue',
|
|||
|
|
createdAt: 'createdAt',
|
|||
|
|
updatedAt: 'updatedAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.SettingScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
key: 'key',
|
|||
|
|
value: 'value',
|
|||
|
|
type: 'type',
|
|||
|
|
category: 'category',
|
|||
|
|
label: 'label',
|
|||
|
|
createdAt: 'createdAt',
|
|||
|
|
updatedAt: 'updatedAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.ChatSessionScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
userId: 'userId',
|
|||
|
|
estimateId: 'estimateId',
|
|||
|
|
status: 'status',
|
|||
|
|
createdAt: 'createdAt',
|
|||
|
|
updatedAt: 'updatedAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.ChatMessageScalarFieldEnum = {
|
|||
|
|
id: 'id',
|
|||
|
|
sessionId: 'sessionId',
|
|||
|
|
role: 'role',
|
|||
|
|
content: 'content',
|
|||
|
|
metadata: 'metadata',
|
|||
|
|
createdAt: 'createdAt'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.SortOrder = {
|
|||
|
|
asc: 'asc',
|
|||
|
|
desc: 'desc'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.NullableJsonNullValueInput = {
|
|||
|
|
DbNull: Prisma.DbNull,
|
|||
|
|
JsonNull: Prisma.JsonNull
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.JsonNullValueInput = {
|
|||
|
|
JsonNull: Prisma.JsonNull
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.QueryMode = {
|
|||
|
|
default: 'default',
|
|||
|
|
insensitive: 'insensitive'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.NullsOrder = {
|
|||
|
|
first: 'first',
|
|||
|
|
last: 'last'
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
exports.Prisma.JsonNullValueFilter = {
|
|||
|
|
DbNull: Prisma.DbNull,
|
|||
|
|
JsonNull: Prisma.JsonNull,
|
|||
|
|
AnyNull: Prisma.AnyNull
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
|
|||
|
|
exports.Prisma.ModelName = {
|
|||
|
|
PriceBook: 'PriceBook',
|
|||
|
|
PriceTable: 'PriceTable',
|
|||
|
|
PriceItem: 'PriceItem',
|
|||
|
|
Coefficient: 'Coefficient',
|
|||
|
|
InflationIndex: 'InflationIndex',
|
|||
|
|
User: 'User',
|
|||
|
|
SurveyDirection: 'SurveyDirection',
|
|||
|
|
Estimate: 'Estimate',
|
|||
|
|
EstimateVersion: 'EstimateVersion',
|
|||
|
|
EstimateShare: 'EstimateShare',
|
|||
|
|
EstimateItem: 'EstimateItem',
|
|||
|
|
EstimateTotal: 'EstimateTotal',
|
|||
|
|
Setting: 'Setting',
|
|||
|
|
ChatSession: 'ChatSession',
|
|||
|
|
ChatMessage: 'ChatMessage'
|
|||
|
|
};
|
|||
|
|
/**
|
|||
|
|
* Create the Client
|
|||
|
|
*/
|
|||
|
|
const config = {
|
|||
|
|
"generator": {
|
|||
|
|
"name": "client",
|
|||
|
|
"provider": {
|
|||
|
|
"fromEnvVar": null,
|
|||
|
|
"value": "prisma-client-js"
|
|||
|
|
},
|
|||
|
|
"output": {
|
|||
|
|
"value": "C:\\Users\\Job\\Desktop\\Сметы гео вариант 2\\backend\\node_modules\\@prisma\\client",
|
|||
|
|
"fromEnvVar": null
|
|||
|
|
},
|
|||
|
|
"config": {
|
|||
|
|
"engineType": "library"
|
|||
|
|
},
|
|||
|
|
"binaryTargets": [
|
|||
|
|
{
|
|||
|
|
"fromEnvVar": null,
|
|||
|
|
"value": "windows",
|
|||
|
|
"native": true
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"previewFeatures": [],
|
|||
|
|
"sourceFilePath": "C:\\Users\\Job\\Desktop\\Сметы гео вариант 2\\backend\\prisma\\schema.prisma"
|
|||
|
|
},
|
|||
|
|
"relativeEnvPaths": {
|
|||
|
|
"rootEnvPath": null,
|
|||
|
|
"schemaEnvPath": "../../../.env"
|
|||
|
|
},
|
|||
|
|
"relativePath": "../../../prisma",
|
|||
|
|
"clientVersion": "5.22.0",
|
|||
|
|
"engineVersion": "605197351a3c8bdd595af2d2a9bc3025bca48ea2",
|
|||
|
|
"datasourceNames": [
|
|||
|
|
"db"
|
|||
|
|
],
|
|||
|
|
"activeProvider": "postgresql",
|
|||
|
|
"postinstall": false,
|
|||
|
|
"inlineDatasources": {
|
|||
|
|
"db": {
|
|||
|
|
"url": {
|
|||
|
|
"fromEnvVar": "DATABASE_URL",
|
|||
|
|
"value": null
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"inlineSchema": "// Prisma schema for Estimate Assistant\n\ngenerator client {\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\n// Справочники базовых цен\nmodel PriceBook {\n id String @id @default(uuid())\n code String @unique // SBC-GEODESY-2004, SBC-GEOLOGY-1999\n name String // Полное название справочника\n baseDate DateTime // Дата базовых цен (01.01.2001, 01.01.1991)\n approvedBy String? // Кем утвержден\n effectiveDate DateTime? // Дата введения в действие\n isActive Boolean @default(true)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n tables PriceTable[]\n items PriceItem[]\n}\n\n// Таблицы справочников\nmodel PriceTable {\n id String @id @default(uuid())\n priceBookId String\n tableNumber Int // Номер таблицы (8, 9, 13, и т.д.)\n name String // Название таблицы\n unit String // Единица измерения (1 пункт, 1 га, 1 км и т.д.)\n notes Json? // Примечания к таблице\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n priceBook PriceBook @relation(fields: [priceBookId], references: [id], onDelete: Cascade)\n items PriceItem[]\n\n @@unique([priceBookId, tableNumber])\n}\n\n// Позиции справочников (расценки)\nmodel PriceItem {\n id String @id @default(uuid())\n priceBookId String\n priceTableId String\n paragraph String // Номер параграфа (8-1, 9-4-1 и т.д.)\n workType String // Тип работы / наименование\n description String? // Дополнительное описание\n\n // Цены (полевые/камеральные для разных категорий)\n priceField1 Decimal? @db.Decimal(12, 2) // Полевые работы, категория 1\n priceOffice1 Decimal? @db.Decimal(12, 2) // Камеральные работы, категория 1\n priceField2 Decimal? @db.Decimal(12, 2) // Полевые работы, категория 2\n priceOffice2 Decimal? @db.Decimal(12, 2) // Камеральные работы, категория 2\n priceField3 Decimal? @db.Decimal(12, 2) // Полевые работы, категория 3\n priceOffice3 Decimal? @db.Decimal(12, 2) // Камеральные работы, категория 3\n priceSimple Decimal? @db.Decimal(12, 2) // Простая цена (без категорий)\n\n // Дополнительные параметры\n attributes Json? // Доп. атрибуты (масштаб, глубина, диаметр и т.д.)\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n priceBook PriceBook @relation(fields: [priceBookId], references: [id], onDelete: Cascade)\n priceTable PriceTable @relation(fields: [priceTableId], references: [id], onDelete: Cascade)\n estimateItems EstimateItem[]\n\n @@index([paragraph])\n @@index([workType])\n}\n\n// Коэффициенты\nmodel Coefficient {\n id String @id @default(uuid())\n type String // regional, transport_internal, transport_external, seasonal, special\n code String // Уникальный код коэффициента\n name String // Название\n value Decimal @db.Decimal(6, 4) // Значение коэффициента\n description String? // Описание\n conditions Json? // Условия применения\n isActive Boolean @default(true)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([type, code])\n}\n\n// Индексы инфляции (перевод в текущие цены)\nmodel InflationIndex {\n id String @id @default(uuid())\n baseDate DateTime // Базо<D0B7>
|
|||
|
|
"inlineSchemaHash": "bc80edc361cc68e644a8e28a66cb71ea44953b4cdcc4022b7c0c5dfdc80644fc",
|
|||
|
|
"copyEngine": true
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
const fs = require('fs')
|
|||
|
|
|
|||
|
|
config.dirname = __dirname
|
|||
|
|
if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) {
|
|||
|
|
const alternativePaths = [
|
|||
|
|
"node_modules/.prisma/client",
|
|||
|
|
".prisma/client",
|
|||
|
|
]
|
|||
|
|
|
|||
|
|
const alternativePath = alternativePaths.find((altPath) => {
|
|||
|
|
return fs.existsSync(path.join(process.cwd(), altPath, 'schema.prisma'))
|
|||
|
|
}) ?? alternativePaths[0]
|
|||
|
|
|
|||
|
|
config.dirname = path.join(process.cwd(), alternativePath)
|
|||
|
|
config.isBundled = true
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
config.runtimeDataModel = JSON.parse("{\"models\":{\"PriceBook\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"uuid(4)\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"code\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"baseDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"approvedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"effectiveDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"tables\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"PriceTable\",\"relationName\":\"PriceBookToPriceTable\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"items\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"PriceItem\",\"relationName\":\"PriceBookToPriceItem\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"PriceTable\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"uuid(4)\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"priceBookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"tableNumber\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"unit\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":fa
|
|||
|
|
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|||
|
|
config.engineWasm = undefined
|
|||
|
|
|
|||
|
|
|
|||
|
|
const { warnEnvConflicts } = require('@prisma/client/runtime/library.js')
|
|||
|
|
|
|||
|
|
warnEnvConflicts({
|
|||
|
|
rootEnvPath: config.relativeEnvPaths.rootEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.rootEnvPath),
|
|||
|
|
schemaEnvPath: config.relativeEnvPaths.schemaEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.schemaEnvPath)
|
|||
|
|
})
|
|||
|
|
|
|||
|
|
const PrismaClient = getPrismaClient(config)
|
|||
|
|
exports.PrismaClient = PrismaClient
|
|||
|
|
Object.assign(exports, Prisma)
|
|||
|
|
|
|||
|
|
// file annotations for bundling tools to include these files
|
|||
|
|
path.join(__dirname, "query_engine-windows.dll.node");
|
|||
|
|
path.join(process.cwd(), "node_modules/.prisma/client/query_engine-windows.dll.node")
|
|||
|
|
// file annotations for bundling tools to include these files
|
|||
|
|
path.join(__dirname, "schema.prisma");
|
|||
|
|
path.join(process.cwd(), "node_modules/.prisma/client/schema.prisma")
|