
/* !!! 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'
export type * from './prismaNamespace'

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',
  Tenant: 'Tenant',
  DeliveryZone: 'DeliveryZone',
  NeighborhoodCatalog: 'NeighborhoodCatalog',
  MediaAsset: 'MediaAsset',
  TenantUser: 'TenantUser',
  Session: 'Session',
  Plan: 'Plan',
  AddonModule: 'AddonModule',
  MarketingPackage: 'MarketingPackage',
  MarketingMaterial: 'MarketingMaterial',
  CampaignLead: 'CampaignLead',
  PlanFeature: 'PlanFeature',
  Subscription: 'Subscription',
  Payment: 'Payment',
  BillingWebhookEvent: 'BillingWebhookEvent',
  Domain: 'Domain',
  ThemeSetting: 'ThemeSetting',
  SiteBanner: 'SiteBanner',
  Product: 'Product',
  ProductCategory: 'ProductCategory',
  Service: 'Service',
  ServiceCategory: 'ServiceCategory',
  QuoteRequest: 'QuoteRequest',
  Order: 'Order',
  OrderItem: 'OrderItem',
  AuditLog: 'AuditLog',
  BlogPost: 'BlogPost'
} as const

export type ModelName = (typeof ModelName)[keyof typeof ModelName]

/*
 * Enums
 */

export const TransactionIsolationLevel = runtime.makeStrictEnum({
  ReadUncommitted: 'ReadUncommitted',
  ReadCommitted: 'ReadCommitted',
  RepeatableRead: 'RepeatableRead',
  Serializable: 'Serializable'
} as const)

export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]


export const UserScalarFieldEnum = {
  id: 'id',
  name: 'name',
  email: 'email',
  phone: 'phone',
  passwordHash: 'passwordHash',
  isSuperAdmin: 'isSuperAdmin',
  platformRole: 'platformRole',
  commissionBps: 'commissionBps',
  managerId: 'managerId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  deletedAt: 'deletedAt'
} as const

export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]


export const TenantScalarFieldEnum = {
  id: 'id',
  name: 'name',
  legalDocument: 'legalDocument',
  slug: 'slug',
  email: 'email',
  phone: 'phone',
  whatsapp: 'whatsapp',
  city: 'city',
  state: 'state',
  segment: 'segment',
  description: 'description',
  addressLine: 'addressLine',
  postalCode: 'postalCode',
  instagramUrl: 'instagramUrl',
  facebookUrl: 'facebookUrl',
  businessModel: 'businessModel',
  status: 'status',
  directoryOptIn: 'directoryOptIn',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  deletedAt: 'deletedAt',
  deliveryEnabled: 'deliveryEnabled',
  deliveryPriceCents: 'deliveryPriceCents',
  showGoogleMap: 'showGoogleMap',
  feature1Title: 'feature1Title',
  feature1Description: 'feature1Description',
  feature2Title: 'feature2Title',
  feature2Description: 'feature2Description',
  feature3Title: 'feature3Title',
  feature3Description: 'feature3Description'
} as const

export type TenantScalarFieldEnum = (typeof TenantScalarFieldEnum)[keyof typeof TenantScalarFieldEnum]


export const DeliveryZoneScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  neighborhood: 'neighborhood',
  priceCents: 'priceCents',
  estimatedMinutes: 'estimatedMinutes',
  active: 'active',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type DeliveryZoneScalarFieldEnum = (typeof DeliveryZoneScalarFieldEnum)[keyof typeof DeliveryZoneScalarFieldEnum]


export const NeighborhoodCatalogScalarFieldEnum = {
  id: 'id',
  state: 'state',
  cityCode: 'cityCode',
  city: 'city',
  name: 'name',
  normalized: 'normalized',
  source: 'source',
  updatedAt: 'updatedAt'
} as const

export type NeighborhoodCatalogScalarFieldEnum = (typeof NeighborhoodCatalogScalarFieldEnum)[keyof typeof NeighborhoodCatalogScalarFieldEnum]


export const MediaAssetScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  kind: 'kind',
  storageKey: 'storageKey',
  url: 'url',
  mimeType: 'mimeType',
  sizeBytes: 'sizeBytes',
  originalName: 'originalName',
  createdAt: 'createdAt',
  deletedAt: 'deletedAt',
  productId: 'productId',
  serviceId: 'serviceId',
  sortOrder: 'sortOrder'
} as const

export type MediaAssetScalarFieldEnum = (typeof MediaAssetScalarFieldEnum)[keyof typeof MediaAssetScalarFieldEnum]


export const TenantUserScalarFieldEnum = {
  tenantId: 'tenantId',
  userId: 'userId',
  role: 'role',
  active: 'active'
} as const

export type TenantUserScalarFieldEnum = (typeof TenantUserScalarFieldEnum)[keyof typeof TenantUserScalarFieldEnum]


export const SessionScalarFieldEnum = {
  id: 'id',
  tokenHash: 'tokenHash',
  userId: 'userId',
  expiresAt: 'expiresAt',
  createdAt: 'createdAt'
} as const

export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]


export const PlanScalarFieldEnum = {
  id: 'id',
  code: 'code',
  name: 'name',
  priceCents: 'priceCents',
  setupFeeCents: 'setupFeeCents',
  active: 'active'
} as const

export type PlanScalarFieldEnum = (typeof PlanScalarFieldEnum)[keyof typeof PlanScalarFieldEnum]


export const AddonModuleScalarFieldEnum = {
  id: 'id',
  code: 'code',
  name: 'name',
  description: 'description',
  priceCents: 'priceCents',
  active: 'active',
  future: 'future',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type AddonModuleScalarFieldEnum = (typeof AddonModuleScalarFieldEnum)[keyof typeof AddonModuleScalarFieldEnum]


export const MarketingPackageScalarFieldEnum = {
  id: 'id',
  title: 'title',
  category: 'category',
  description: 'description',
  salesScript: 'salesScript',
  active: 'active',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type MarketingPackageScalarFieldEnum = (typeof MarketingPackageScalarFieldEnum)[keyof typeof MarketingPackageScalarFieldEnum]


export const MarketingMaterialScalarFieldEnum = {
  id: 'id',
  packageId: 'packageId',
  title: 'title',
  fileUrl: 'fileUrl',
  storageKey: 'storageKey',
  mimeType: 'mimeType',
  sizeBytes: 'sizeBytes',
  sortOrder: 'sortOrder',
  createdAt: 'createdAt'
} as const

export type MarketingMaterialScalarFieldEnum = (typeof MarketingMaterialScalarFieldEnum)[keyof typeof MarketingMaterialScalarFieldEnum]


export const CampaignLeadScalarFieldEnum = {
  id: 'id',
  responsibleName: 'responsibleName',
  companyName: 'companyName',
  document: 'document',
  email: 'email',
  phone: 'phone',
  city: 'city',
  state: 'state',
  segment: 'segment',
  businessModel: 'businessModel',
  logoUrl: 'logoUrl',
  domain: 'domain',
  domainAvailable: 'domainAvailable',
  domainMode: 'domainMode',
  setupFeeDiscountCents: 'setupFeeDiscountCents',
  publicationStatus: 'publicationStatus',
  planId: 'planId',
  planName: 'planName',
  monthlyCents: 'monthlyCents',
  setupFeeCents: 'setupFeeCents',
  selectedModules: 'selectedModules',
  sellerId: 'sellerId',
  paymentUrl: 'paymentUrl',
  paymentExternalId: 'paymentExternalId',
  subscriptionExternalId: 'subscriptionExternalId',
  subscriptionStartsAt: 'subscriptionStartsAt',
  status: 'status',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CampaignLeadScalarFieldEnum = (typeof CampaignLeadScalarFieldEnum)[keyof typeof CampaignLeadScalarFieldEnum]


export const PlanFeatureScalarFieldEnum = {
  id: 'id',
  planId: 'planId',
  key: 'key',
  enabled: 'enabled',
  limit: 'limit'
} as const

export type PlanFeatureScalarFieldEnum = (typeof PlanFeatureScalarFieldEnum)[keyof typeof PlanFeatureScalarFieldEnum]


export const SubscriptionScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  planId: 'planId',
  status: 'status',
  priceCents: 'priceCents',
  trialEndsAt: 'trialEndsAt',
  dueAt: 'dueAt',
  startedAt: 'startedAt',
  cancelledAt: 'cancelledAt',
  provider: 'provider',
  externalCustomerId: 'externalCustomerId',
  externalSubscriptionId: 'externalSubscriptionId',
  billingType: 'billingType'
} as const

export type SubscriptionScalarFieldEnum = (typeof SubscriptionScalarFieldEnum)[keyof typeof SubscriptionScalarFieldEnum]


export const PaymentScalarFieldEnum = {
  id: 'id',
  subscriptionId: 'subscriptionId',
  provider: 'provider',
  externalId: 'externalId',
  status: 'status',
  amountCents: 'amountCents',
  netAmountCents: 'netAmountCents',
  billingType: 'billingType',
  dueAt: 'dueAt',
  paidAt: 'paidAt',
  invoiceUrl: 'invoiceUrl',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type PaymentScalarFieldEnum = (typeof PaymentScalarFieldEnum)[keyof typeof PaymentScalarFieldEnum]


export const BillingWebhookEventScalarFieldEnum = {
  id: 'id',
  provider: 'provider',
  externalId: 'externalId',
  eventType: 'eventType',
  payload: 'payload',
  processedAt: 'processedAt'
} as const

export type BillingWebhookEventScalarFieldEnum = (typeof BillingWebhookEventScalarFieldEnum)[keyof typeof BillingWebhookEventScalarFieldEnum]


export const DomainScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  hostname: 'hostname',
  primary: 'primary',
  status: 'status',
  verifiedAt: 'verifiedAt'
} as const

export type DomainScalarFieldEnum = (typeof DomainScalarFieldEnum)[keyof typeof DomainScalarFieldEnum]


export const ThemeSettingScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  logoUrl: 'logoUrl',
  faviconUrl: 'faviconUrl',
  bannerUrl: 'bannerUrl',
  primaryColor: 'primaryColor',
  headerColor: 'headerColor',
  buttonColor: 'buttonColor',
  footerColor: 'footerColor'
} as const

export type ThemeSettingScalarFieldEnum = (typeof ThemeSettingScalarFieldEnum)[keyof typeof ThemeSettingScalarFieldEnum]


export const SiteBannerScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  imageUrl: 'imageUrl',
  linkUrl: 'linkUrl',
  altText: 'altText',
  sortOrder: 'sortOrder',
  active: 'active',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type SiteBannerScalarFieldEnum = (typeof SiteBannerScalarFieldEnum)[keyof typeof SiteBannerScalarFieldEnum]


export const ProductScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  name: 'name',
  slug: 'slug',
  shortDescription: 'shortDescription',
  description: 'description',
  sku: 'sku',
  categoryId: 'categoryId',
  priceCents: 'priceCents',
  promoPriceCents: 'promoPriceCents',
  stock: 'stock',
  trackStock: 'trackStock',
  active: 'active',
  featured: 'featured',
  seoTitle: 'seoTitle',
  metaDescription: 'metaDescription',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  deletedAt: 'deletedAt'
} as const

export type ProductScalarFieldEnum = (typeof ProductScalarFieldEnum)[keyof typeof ProductScalarFieldEnum]


export const ProductCategoryScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  name: 'name',
  slug: 'slug',
  active: 'active',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  deletedAt: 'deletedAt'
} as const

export type ProductCategoryScalarFieldEnum = (typeof ProductCategoryScalarFieldEnum)[keyof typeof ProductCategoryScalarFieldEnum]


export const ServiceScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  name: 'name',
  slug: 'slug',
  shortDescription: 'shortDescription',
  description: 'description',
  categoryId: 'categoryId',
  priceCents: 'priceCents',
  durationMinutes: 'durationMinutes',
  attendanceMode: 'attendanceMode',
  quoteEnabled: 'quoteEnabled',
  whatsappEnabled: 'whatsappEnabled',
  active: 'active',
  featured: 'featured',
  seoTitle: 'seoTitle',
  metaDescription: 'metaDescription',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  deletedAt: 'deletedAt'
} as const

export type ServiceScalarFieldEnum = (typeof ServiceScalarFieldEnum)[keyof typeof ServiceScalarFieldEnum]


export const ServiceCategoryScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  name: 'name',
  slug: 'slug',
  active: 'active',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  deletedAt: 'deletedAt'
} as const

export type ServiceCategoryScalarFieldEnum = (typeof ServiceCategoryScalarFieldEnum)[keyof typeof ServiceCategoryScalarFieldEnum]


export const QuoteRequestScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  name: 'name',
  email: 'email',
  message: 'message',
  phone: 'phone',
  serviceId: 'serviceId',
  status: 'status',
  updatedAt: 'updatedAt',
  createdAt: 'createdAt'
} as const

export type QuoteRequestScalarFieldEnum = (typeof QuoteRequestScalarFieldEnum)[keyof typeof QuoteRequestScalarFieldEnum]


export const OrderScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  customerName: 'customerName',
  email: 'email',
  phone: 'phone',
  status: 'status',
  totalCents: 'totalCents',
  notes: 'notes',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type OrderScalarFieldEnum = (typeof OrderScalarFieldEnum)[keyof typeof OrderScalarFieldEnum]


export const OrderItemScalarFieldEnum = {
  id: 'id',
  orderId: 'orderId',
  productId: 'productId',
  name: 'name',
  unitPriceCents: 'unitPriceCents',
  quantity: 'quantity'
} as const

export type OrderItemScalarFieldEnum = (typeof OrderItemScalarFieldEnum)[keyof typeof OrderItemScalarFieldEnum]


export const AuditLogScalarFieldEnum = {
  id: 'id',
  tenantId: 'tenantId',
  actorId: 'actorId',
  action: 'action',
  entity: 'entity',
  entityId: 'entityId',
  metadata: 'metadata',
  ip: 'ip',
  createdAt: 'createdAt'
} as const

export type AuditLogScalarFieldEnum = (typeof AuditLogScalarFieldEnum)[keyof typeof AuditLogScalarFieldEnum]


export const BlogPostScalarFieldEnum = {
  id: 'id',
  title: 'title',
  slug: 'slug',
  excerpt: 'excerpt',
  content: 'content',
  category: 'category',
  coverImageUrl: 'coverImageUrl',
  seoTitle: 'seoTitle',
  metaDescription: 'metaDescription',
  published: 'published',
  publishedAt: 'publishedAt',
  authorId: 'authorId',
  tenantId: 'tenantId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type BlogPostScalarFieldEnum = (typeof BlogPostScalarFieldEnum)[keyof typeof BlogPostScalarFieldEnum]


export const SortOrder = {
  asc: 'asc',
  desc: 'desc'
} as const

export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]


export const JsonNullValueInput = {
  JsonNull: JsonNull
} as const

export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]


export const NullableJsonNullValueInput = {
  DbNull: DbNull,
  JsonNull: JsonNull
} as const

export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]


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 JsonNullValueFilter = {
  DbNull: DbNull,
  JsonNull: JsonNull,
  AnyNull: AnyNull
} as const

export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]

