
/* !!! 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('./runtime/client.js')


const Prisma = {}

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

/**
 * Prisma Client JS version: 7.2.0
 * Query Engine version: 0c8ef2ce45c83248ab3df073180d5eda9e8be7a3
 */
Prisma.prismaVersion = {
  client: "7.2.0",
  engine: "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3"
}

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.CategoryScalarFieldEnum = {
  id: 'id',
  name: 'name',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  userId: 'userId'
};

exports.Prisma.ArticleScalarFieldEnum = {
  id: 'id',
  title: 'title',
  url: 'url',
  quote: 'quote',
  ogImageUrl: 'ogImageUrl',
  ogTitle: 'ogTitle',
  ogDescription: 'ogDescription',
  categoryId: 'categoryId',
  status: 'status',
  userId: 'userId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  exportedAt: 'exportedAt'
};

exports.Prisma.NoteScalarFieldEnum = {
  id: 'id',
  title: 'title',
  markdown: 'markdown',
  status: 'status',
  userId: 'userId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  exportedAt: 'exportedAt'
};

exports.Prisma.ImageScalarFieldEnum = {
  id: 'id',
  path: 'path',
  contentType: 'contentType',
  fileSize: 'fileSize',
  width: 'width',
  height: 'height',
  tags: 'tags',
  description: 'description',
  status: 'status',
  userId: 'userId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  exportedAt: 'exportedAt'
};

exports.Prisma.BookScalarFieldEnum = {
  id: 'id',
  ISBN: 'ISBN',
  title: 'title',
  googleTitle: 'googleTitle',
  googleSubTitle: 'googleSubTitle',
  googleAuthors: 'googleAuthors',
  googleDescription: 'googleDescription',
  googleImgSrc: 'googleImgSrc',
  googleHref: 'googleHref',
  markdown: 'markdown',
  rating: 'rating',
  tags: 'tags',
  status: 'status',
  userId: 'userId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  exportedAt: 'exportedAt'
};

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

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

exports.Prisma.NullsOrder = {
  first: 'first',
  last: 'last'
};
exports.Status = exports.$Enums.Status = {
  UNEXPORTED: 'UNEXPORTED',
  LAST_UPDATED: 'LAST_UPDATED',
  EXPORTED: 'EXPORTED'
};

exports.Prisma.ModelName = {
  Category: 'Category',
  Article: 'Article',
  Note: 'Note',
  Image: 'Image',
  Book: 'Book'
};
/**
 * Create the Client
 */
const config = {
  "previewFeatures": [],
  "clientVersion": "7.2.0",
  "engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
  "activeProvider": "postgresql",
  "inlineSchema": "generator client {\n  provider = \"prisma-client-js\"\n  output   = \"../src/generated\"\n}\n\ndatasource db {\n  provider = \"postgresql\"\n}\n\nenum Status {\n  UNEXPORTED\n  LAST_UPDATED\n  EXPORTED\n}\n\nmodel Category {\n  id String @id\n\n  name String\n\n  Articles Article[]\n\n  createdAt DateTime @map(\"created_at\")\n  updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n  userId String @map(\"user_id\")\n\n  @@unique([name, userId])\n  @@map(\"categories\")\n}\n\nmodel Article {\n  id String @id\n\n  title String\n  url   String\n  quote String?\n\n  ogImageUrl    String? @map(\"og_image_url\")\n  ogTitle       String? @map(\"og_title\")\n  ogDescription String? @map(\"og_description\")\n\n  Category   Category @relation(fields: [categoryId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n  categoryId String   @map(\"category_id\")\n\n  status Status\n\n  userId String @map(\"user_id\")\n\n  createdAt  DateTime  @map(\"created_at\")\n  updatedAt  DateTime  @updatedAt @map(\"updated_at\")\n  exportedAt DateTime? @map(\"exported_at\")\n\n  @@unique([url, userId])\n  @@map(\"articles\")\n}\n\nmodel Note {\n  id String @id\n\n  title    String\n  markdown String\n\n  status Status\n\n  userId String @map(\"user_id\")\n\n  createdAt  DateTime  @map(\"created_at\")\n  updatedAt  DateTime  @updatedAt @map(\"updated_at\")\n  exportedAt DateTime? @map(\"exported_at\")\n\n  @@unique([title, userId])\n  @@map(\"notes\")\n}\n\nmodel Image {\n  id String @id\n\n  path        String\n  contentType String   @map(\"content_type\") // e.g.: image/jpeg, image/png\n  fileSize    Int?     @map(\"file_size\") // byte\n  width       Int? // pixel\n  height      Int? // pixel\n  tags        String[]\n  description String?\n\n  status Status\n\n  userId String @map(\"user_id\")\n\n  createdAt  DateTime  @map(\"created_at\")\n  updatedAt  DateTime  @updatedAt @map(\"updated_at\")\n  exportedAt DateTime? @map(\"exported_at\")\n\n  @@unique([path, userId])\n  @@map(\"images\")\n}\n\nmodel Book {\n  id    String @id\n  ISBN  String @map(\"isbn\")\n  title String\n\n  googleTitle       String?  @map(\"google_title\")\n  googleSubTitle    String?  @map(\"google_subtitle\")\n  googleAuthors     String[] @map(\"google_authors\")\n  googleDescription String?  @map(\"google_description\")\n  googleImgSrc      String?  @map(\"google_img_src\")\n  googleHref        String?  @map(\"google_href\")\n\n  markdown String?\n\n  rating Int? // 1-5\n  tags   String[]\n\n  status Status\n\n  userId String @map(\"user_id\")\n\n  createdAt  DateTime  @map(\"created_at\")\n  updatedAt  DateTime  @updatedAt @map(\"updated_at\")\n  exportedAt DateTime? @map(\"exported_at\")\n\n  @@unique([ISBN, userId])\n  @@map(\"books\")\n}\n"
}

config.runtimeDataModel = JSON.parse("{\"models\":{\"Category\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"Articles\",\"kind\":\"object\",\"type\":\"Article\",\"relationName\":\"ArticleToCategory\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"}],\"dbName\":\"categories\"},\"Article\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"url\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quote\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ogImageUrl\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"og_image_url\"},{\"name\":\"ogTitle\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"og_title\"},{\"name\":\"ogDescription\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"og_description\"},{\"name\":\"Category\",\"kind\":\"object\",\"type\":\"Category\",\"relationName\":\"ArticleToCategory\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"category_id\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"Status\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"exportedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"exported_at\"}],\"dbName\":\"articles\"},\"Note\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"markdown\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"Status\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"exportedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"exported_at\"}],\"dbName\":\"notes\"},\"Image\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"path\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"contentType\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"content_type\"},{\"name\":\"fileSize\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"file_size\"},{\"name\":\"width\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"height\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"tags\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"Status\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"exportedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"exported_at\"}],\"dbName\":\"images\"},\"Book\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ISBN\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"isbn\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"googleTitle\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_title\"},{\"name\":\"googleSubTitle\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_subtitle\"},{\"name\":\"googleAuthors\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_authors\"},{\"name\":\"googleDescription\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_description\"},{\"name\":\"googleImgSrc\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_img_src\"},{\"name\":\"googleHref\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_href\"},{\"name\":\"markdown\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rating\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"tags\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"Status\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"exportedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"exported_at\"}],\"dbName\":\"books\"}},\"enums\":{},\"types\":{}}")
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
config.compilerWasm = {
      getRuntime: async () => require('./query_compiler_bg.js'),
      getQueryCompilerWasmModule: async () => {
        const { Buffer } = require('node:buffer')
        const { wasm } = require('./query_compiler_bg.wasm-base64.js')
        const queryCompilerWasmFileBytes = Buffer.from(wasm, 'base64')

        return new WebAssembly.Module(queryCompilerWasmFileBytes)
      }
    }

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