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

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',
  CoinTransaction: 'CoinTransaction',
  Notification: 'Notification',
  AppSettings: 'AppSettings',
  Team: 'Team',
  Player: 'Player',
  Match: 'Match',
  MatchPlayer: 'MatchPlayer',
  UserTeam: 'UserTeam',
  UserTeamPlayer: 'UserTeamPlayer',
  Contest: 'Contest',
  ContestEntry: 'ContestEntry',
  PointSystem: 'PointSystem'
} 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',
  avatarUrl: 'avatarUrl',
  totalPoints: 'totalPoints',
  isAdmin: 'isAdmin',
  coins: 'coins',
  lastDailyBonusAt: 'lastDailyBonusAt',
  isBanned: 'isBanned',
  bannedReason: 'bannedReason',
  bannedAt: 'bannedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const CoinTransactionScalarFieldEnum = {
  id: 'id',
  userId: 'userId',
  type: 'type',
  amount: 'amount',
  balanceAfter: 'balanceAfter',
  contestId: 'contestId',
  reason: 'reason',
  createdAt: 'createdAt'
} as const

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


export const NotificationScalarFieldEnum = {
  id: 'id',
  userId: 'userId',
  type: 'type',
  title: 'title',
  message: 'message',
  coinAmount: 'coinAmount',
  isRead: 'isRead',
  createdAt: 'createdAt'
} as const

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


export const AppSettingsScalarFieldEnum = {
  id: 'id',
  dailyBonusAmount: 'dailyBonusAmount'
} as const

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


export const TeamScalarFieldEnum = {
  id: 'id',
  name: 'name',
  shortName: 'shortName',
  hasLogo: 'hasLogo',
  logoUrl: 'logoUrl',
  sport: 'sport',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const PlayerScalarFieldEnum = {
  id: 'id',
  name: 'name',
  teamId: 'teamId',
  role: 'role',
  creditValue: 'creditValue',
  hasPhoto: 'hasPhoto',
  imageUrl: 'imageUrl',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const MatchScalarFieldEnum = {
  id: 'id',
  sport: 'sport',
  teamAId: 'teamAId',
  teamBId: 'teamBId',
  tournamentName: 'tournamentName',
  format: 'format',
  venue: 'venue',
  startTime: 'startTime',
  status: 'status',
  lockTime: 'lockTime',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const MatchPlayerScalarFieldEnum = {
  id: 'id',
  matchId: 'matchId',
  playerId: 'playerId',
  isPlaying: 'isPlaying',
  points: 'points',
  runs: 'runs',
  ballsFaced: 'ballsFaced',
  fours: 'fours',
  sixes: 'sixes',
  isOut: 'isOut',
  ballsBowled: 'ballsBowled',
  dotBalls: 'dotBalls',
  maidens: 'maidens',
  runsConceded: 'runsConceded',
  wickets: 'wickets',
  wicketsBowledOrLBW: 'wicketsBowledOrLBW',
  catches: 'catches',
  runOutsDirect: 'runOutsDirect',
  runOutsIndirect: 'runOutsIndirect',
  stumpings: 'stumpings',
  minutesPlayed: 'minutesPlayed',
  goals: 'goals',
  assists: 'assists',
  cleanSheet: 'cleanSheet',
  yellowCards: 'yellowCards',
  redCards: 'redCards',
  ownGoals: 'ownGoals',
  penaltiesSaved: 'penaltiesSaved',
  penaltiesMissed: 'penaltiesMissed',
  saves: 'saves',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const UserTeamScalarFieldEnum = {
  id: 'id',
  userId: 'userId',
  matchId: 'matchId',
  teamName: 'teamName',
  captainId: 'captainId',
  viceCaptainId: 'viceCaptainId',
  totalPoints: 'totalPoints',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const UserTeamPlayerScalarFieldEnum = {
  id: 'id',
  userTeamId: 'userTeamId',
  matchPlayerId: 'matchPlayerId'
} as const

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


export const ContestScalarFieldEnum = {
  id: 'id',
  matchId: 'matchId',
  name: 'name',
  maxEntries: 'maxEntries',
  entryCost: 'entryCost',
  prizeDistribution: 'prizeDistribution',
  prizesDistributed: 'prizesDistributed',
  createdAt: 'createdAt'
} as const

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


export const ContestEntryScalarFieldEnum = {
  id: 'id',
  contestId: 'contestId',
  userId: 'userId',
  userTeamId: 'userTeamId',
  status: 'status',
  rank: 'rank',
  createdAt: 'createdAt'
} as const

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


export const PointSystemScalarFieldEnum = {
  id: 'id',
  sport: 'sport',
  format: 'format',
  isDefault: 'isDefault',
  rules: 'rules',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


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]

