
/* !!! 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',
  Role: 'Role',
  Branch: 'Branch',
  UserBranch: 'UserBranch',
  HeaderSetting: 'HeaderSetting',
  DetailSetting: 'DetailSetting',
  Bank: 'Bank',
  Customer: 'Customer',
  Transaction: 'Transaction',
  TransactionItem: 'TransactionItem',
  TempPhoto: 'TempPhoto',
  TransactionItemPhoto: 'TransactionItemPhoto',
  ItemType: 'ItemType',
  PricingHeader: 'PricingHeader',
  PricingDetail: 'PricingDetail',
  TransactionItemDoc: 'TransactionItemDoc',
  TransactionDoc: 'TransactionDoc',
  Approval: 'Approval',
  Payment: 'Payment',
  TransactionSnapshot: 'TransactionSnapshot',
  Note: 'Note',
  TxnRunum: 'TxnRunum',
  AuditLog: 'AuditLog'
} 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',
  email: 'email',
  hash: 'hash',
  firstName: 'firstName',
  lastName: 'lastName',
  roleId: 'roleId',
  createdAt: 'createdAt',
  modifiedAt: 'modifiedAt'
} as const

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


export const RoleScalarFieldEnum = {
  id: 'id',
  code: 'code',
  name: 'name',
  accessAllBranch: 'accessAllBranch',
  createdAt: 'createdAt',
  modifiedAt: 'modifiedAt'
} as const

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


export const BranchScalarFieldEnum = {
  id: 'id',
  code: 'code',
  name: 'name',
  address: 'address',
  beginEffective: 'beginEffective',
  endEffective: 'endEffective',
  createdAt: 'createdAt',
  modifiedAt: 'modifiedAt'
} as const

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


export const UserBranchScalarFieldEnum = {
  id: 'id',
  userId: 'userId',
  branchId: 'branchId'
} as const

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


export const HeaderSettingScalarFieldEnum = {
  id: 'id',
  code: 'code',
  description: 'description',
  status: 'status',
  createdAt: 'createdAt',
  modifiedAt: 'modifiedAt'
} as const

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


export const DetailSettingScalarFieldEnum = {
  id: 'id',
  headerId: 'headerId',
  code: 'code',
  name: 'name',
  description: 'description',
  status: 'status',
  beginEffective: 'beginEffective',
  endEffective: 'endEffective',
  createdAt: 'createdAt',
  modifiedAt: 'modifiedAt'
} as const

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


export const BankScalarFieldEnum = {
  id: 'id',
  code: 'code',
  name: 'name',
  status: 'status',
  createdAt: 'createdAt',
  modifiedAt: 'modifiedAt'
} as const

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


export const CustomerScalarFieldEnum = {
  id: 'id',
  code: 'code',
  fullName: 'fullName',
  phoneNumber: 'phoneNumber',
  ktpNumber: 'ktpNumber',
  ktpPhotoUrl: 'ktpPhotoUrl',
  address: 'address',
  createdAt: 'createdAt',
  modifiedAt: 'modifiedAt'
} as const

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


export const TransactionScalarFieldEnum = {
  id: 'id',
  trxCode: 'trxCode',
  branchId: 'branchId',
  customerId: 'customerId',
  status: 'status',
  totalGrossWeight: 'totalGrossWeight',
  totalNetWeight: 'totalNetWeight',
  totalAmount: 'totalAmount',
  bankId: 'bankId',
  bankAccountNo: 'bankAccountNo',
  bankAccountName: 'bankAccountName',
  referralSource: 'referralSource',
  knowsFounder: 'knowsFounder',
  createdBy: 'createdBy',
  createdAt: 'createdAt',
  modifiedBy: 'modifiedBy',
  modifiedAt: 'modifiedAt',
  cancellationReason: 'cancellationReason',
  cancelledBy: 'cancelledBy',
  cancelledAt: 'cancelledAt',
  completedBy: 'completedBy',
  completedAt: 'completedAt',
  headStoreId: 'headStoreId'
} as const

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


export const TransactionItemScalarFieldEnum = {
  id: 'id',
  transactionId: 'transactionId',
  itemCode: 'itemCode',
  itemTypeId: 'itemTypeId',
  grossWeight: 'grossWeight',
  netWeight: 'netWeight',
  caratId: 'caratId',
  pricePerGram: 'pricePerGram',
  pricePerGramAt: 'pricePerGramAt',
  purityPercent: 'purityPercent',
  totalPrice: 'totalPrice',
  isAdjusted: 'isAdjusted',
  createdAt: 'createdAt',
  modifiedAt: 'modifiedAt'
} as const

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


export const TempPhotoScalarFieldEnum = {
  id: 'id',
  filename: 'filename',
  url: 'url',
  mimetype: 'mimetype',
  size: 'size',
  createdAt: 'createdAt'
} as const

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


export const TransactionItemPhotoScalarFieldEnum = {
  id: 'id',
  itemId: 'itemId',
  url: 'url',
  filename: 'filename',
  mimetype: 'mimetype',
  size: 'size',
  order: 'order',
  createdAt: 'createdAt'
} as const

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


export const ItemTypeScalarFieldEnum = {
  id: 'id',
  code: 'code',
  name: 'name',
  desc: 'desc',
  status: 'status',
  createdAt: 'createdAt',
  modifiedAt: 'modifiedAt'
} as const

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


export const PricingHeaderScalarFieldEnum = {
  id: 'id',
  itemTypeId: 'itemTypeId',
  code: 'code',
  name: 'name',
  weight: 'weight',
  unit: 'unit',
  description: 'description',
  status: 'status',
  effectiveDate: 'effectiveDate',
  createdAt: 'createdAt',
  modifiedAt: 'modifiedAt'
} as const

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


export const PricingDetailScalarFieldEnum = {
  id: 'id',
  headerId: 'headerId',
  itemTypeId: 'itemTypeId',
  pricePerUnit: 'pricePerUnit',
  weight: 'weight',
  unit: 'unit',
  status: 'status',
  beginEffective: 'beginEffective',
  endEffective: 'endEffective',
  createdAt: 'createdAt',
  modifiedAt: 'modifiedAt',
  createdBy: 'createdBy',
  modifiedBy: 'modifiedBy'
} as const

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


export const TransactionItemDocScalarFieldEnum = {
  id: 'id',
  transactionItemId: 'transactionItemId',
  type: 'type',
  url: 'url',
  filename: 'filename',
  mimetype: 'mimetype',
  size: 'size',
  order: 'order',
  createdAt: 'createdAt'
} as const

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


export const TransactionDocScalarFieldEnum = {
  id: 'id',
  transactionId: 'transactionId',
  type: 'type',
  url: 'url',
  filename: 'filename',
  mimetype: 'mimetype',
  size: 'size',
  order: 'order',
  createdAt: 'createdAt'
} as const

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


export const ApprovalScalarFieldEnum = {
  id: 'id',
  transactionId: 'transactionId',
  role: 'role',
  approvedBy: 'approvedBy',
  approvedAt: 'approvedAt',
  notes: 'notes'
} as const

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


export const PaymentScalarFieldEnum = {
  id: 'id',
  transactionId: 'transactionId',
  transferBy: 'transferBy',
  transferDate: 'transferDate',
  proofUrl: 'proofUrl',
  filename: 'filename',
  mimetype: 'mimetype',
  size: 'size',
  createdAt: 'createdAt'
} as const

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


export const TransactionSnapshotScalarFieldEnum = {
  id: 'id',
  transactionId: 'transactionId',
  totalNetWeight: 'totalNetWeight',
  totalAmount: 'totalAmount',
  snapshotData: 'snapshotData',
  createdAt: 'createdAt'
} as const

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


export const NoteScalarFieldEnum = {
  id: 'id',
  entityType: 'entityType',
  entityId: 'entityId',
  type: 'type',
  content: 'content',
  createdBy: 'createdBy',
  createdAt: 'createdAt'
} as const

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


export const TxnRunumScalarFieldEnum = {
  id: 'id',
  runumId: 'runumId',
  reset: 'reset',
  nid: 'nid',
  createdAt: 'createdAt',
  modifiedAt: 'modifiedAt'
} as const

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


export const AuditLogScalarFieldEnum = {
  id: 'id',
  entityType: 'entityType',
  entityId: 'entityId',
  headerEntityType: 'headerEntityType',
  headerEntityId: 'headerEntityId',
  fieldName: 'fieldName',
  oldValue: 'oldValue',
  newValue: 'newValue',
  changedBy: 'changedBy',
  changedAt: 'changedAt'
} as const

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


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 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]

