
/* !!! 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,
  objectEnumValues,
  makeStrictEnum,
  Extensions,
  warnOnce,
  defineDmmfProperty,
  Public,
  getRuntime,
  createParam,
} = require('./runtime/wasm-compiler-edge.js')


const Prisma = {}

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

/**
 * Prisma Client JS version: 6.19.3
 * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
 */
Prisma.prismaVersion = {
  client: "6.19.3",
  engine: "c2990dca591cba766e3b7ef5d9e8a84796e47ab7"
}

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 = 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
}





/**
 * Enums
 */
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
  ReadUncommitted: 'ReadUncommitted',
  ReadCommitted: 'ReadCommitted',
  RepeatableRead: 'RepeatableRead',
  Serializable: 'Serializable'
});

exports.Prisma.CountryScalarFieldEnum = {
  id: 'id',
  name: 'name',
  code: 'code',
  flagUrl: 'flagUrl',
  flagImage: 'flagImage',
  confederation: 'confederation',
  qualificationMethod: 'qualificationMethod',
  qualificationDate: 'qualificationDate',
  participationHistory: 'participationHistory',
  bestResult: 'bestResult',
  description: 'description',
  defaultFormation: 'defaultFormation',
  defaultLineupPlayerIds: 'defaultLineupPlayerIds',
  defaultCaptainId: 'defaultCaptainId',
  groupId: 'groupId',
  isEliminated: 'isEliminated'
};

exports.Prisma.GroupScalarFieldEnum = {
  id: 'id',
  name: 'name'
};

exports.Prisma.PlayerScalarFieldEnum = {
  id: 'id',
  name: 'name',
  image: 'image',
  position: 'position',
  countryId: 'countryId',
  price: 'price',
  totalPoints: 'totalPoints',
  isActive: 'isActive',
  isGoldenCardEligible: 'isGoldenCardEligible',
  cardTier: 'cardTier',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
};

exports.Prisma.MatchScalarFieldEnum = {
  id: 'id',
  homeTeamId: 'homeTeamId',
  awayTeamId: 'awayTeamId',
  homeScore: 'homeScore',
  awayScore: 'awayScore',
  stage: 'stage',
  status: 'status',
  matchDate: 'matchDate',
  matchDatePersian: 'matchDatePersian',
  stadium: 'stadium',
  city: 'city',
  referee: 'referee',
  assistant1: 'assistant1',
  assistant2: 'assistant2',
  fourthOfficial: 'fourthOfficial',
  attendance: 'attendance',
  weather: 'weather',
  description: 'description',
  roundId: 'roundId',
  createdAt: 'createdAt'
};

exports.Prisma.RoundScalarFieldEnum = {
  id: 'id',
  number: 'number',
  name: 'name',
  isActive: 'isActive',
  deadline: 'deadline',
  createdAt: 'createdAt'
};

exports.Prisma.GameweekScalarFieldEnum = {
  id: 'id',
  number: 'number',
  name: 'name',
  isActive: 'isActive',
  deadline: 'deadline',
  createdAt: 'createdAt'
};

exports.Prisma.MatchEventScalarFieldEnum = {
  id: 'id',
  matchId: 'matchId',
  playerId: 'playerId',
  type: 'type',
  minute: 'minute',
  extraInfo: 'extraInfo',
  createdAt: 'createdAt'
};

exports.Prisma.MatchLineupScalarFieldEnum = {
  id: 'id',
  matchId: 'matchId',
  countryId: 'countryId',
  formation: 'formation',
  playerIds: 'playerIds'
};

exports.Prisma.PlayerMatchStatScalarFieldEnum = {
  id: 'id',
  playerId: 'playerId',
  matchId: 'matchId',
  goals: 'goals',
  assists: 'assists',
  yellowCards: 'yellowCards',
  redCards: 'redCards',
  minutesPlayed: 'minutesPlayed',
  cleanSheet: 'cleanSheet',
  penaltySaved: 'penaltySaved',
  penaltyMissed: 'penaltyMissed',
  ownGoals: 'ownGoals',
  isMotm: 'isMotm',
  extraTimeBonus: 'extraTimeBonus',
  points: 'points'
};

exports.Prisma.ScoringRuleScalarFieldEnum = {
  id: 'id',
  position: 'position',
  eventType: 'eventType',
  points: 'points',
  updatedAt: 'updatedAt',
  updatedBy: 'updatedBy'
};

exports.Prisma.UserScalarFieldEnum = {
  id: 'id',
  name: 'name',
  email: 'email',
  phone: 'phone',
  password: 'password',
  role: 'role',
  createdAt: 'createdAt'
};

exports.Prisma.LoginOtpScalarFieldEnum = {
  id: 'id',
  phone: 'phone',
  codeHash: 'codeHash',
  attempts: 'attempts',
  expiresAt: 'expiresAt',
  consumedAt: 'consumedAt',
  createdAt: 'createdAt'
};

exports.Prisma.FantasyNewsScalarFieldEnum = {
  id: 'id',
  icon: 'icon',
  title: 'title',
  description: 'description',
  newsTime: 'newsTime',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
};

exports.Prisma.DailyQuizScalarFieldEnum = {
  id: 'id',
  date: 'date',
  windowStart: 'windowStart',
  windowEnd: 'windowEnd',
  goldWinnersCount: 'goldWinnersCount',
  silverWinnersCount: 'silverWinnersCount',
  bronzeWinnersCount: 'bronzeWinnersCount',
  goldMinCorrect: 'goldMinCorrect',
  silverMinCorrect: 'silverMinCorrect',
  bronzeMinCorrect: 'bronzeMinCorrect',
  isProcessed: 'isProcessed',
  createdAt: 'createdAt'
};

exports.Prisma.QuizQuestionScalarFieldEnum = {
  id: 'id',
  quizId: 'quizId',
  questionText: 'questionText',
  options: 'options',
  correctAnswer: 'correctAnswer',
  order: 'order'
};

exports.Prisma.QuizSubmissionScalarFieldEnum = {
  id: 'id',
  userId: 'userId',
  quizId: 'quizId',
  answers: 'answers',
  correctAnswers: 'correctAnswers',
  score: 'score',
  submittedAt: 'submittedAt'
};

exports.Prisma.GoldenCardScalarFieldEnum = {
  id: 'id',
  userId: 'userId',
  quizId: 'quizId',
  playerId: 'playerId',
  cardTier: 'cardTier',
  status: 'status',
  state: 'state',
  acquiredDate: 'acquiredDate',
  openedAt: 'openedAt'
};

exports.Prisma.SessionScalarFieldEnum = {
  id: 'id',
  sessionToken: 'sessionToken',
  userId: 'userId',
  expires: 'expires'
};

exports.Prisma.TeamScalarFieldEnum = {
  id: 'id',
  name: 'name',
  userId: 'userId',
  budget: 'budget',
  totalPoints: 'totalPoints',
  formation: 'formation',
  status: 'status',
  createdAt: 'createdAt'
};

exports.Prisma.TeamPlayerScalarFieldEnum = {
  teamId: 'teamId',
  playerId: 'playerId',
  goldenCardId: 'goldenCardId',
  isCaptain: 'isCaptain',
  isViceCaptain: 'isViceCaptain',
  isBench: 'isBench',
  positionIndex: 'positionIndex'
};

exports.Prisma.PackageScalarFieldEnum = {
  id: 'id',
  name: 'name',
  budgetBonus: 'budgetBonus',
  price: 'price',
  description: 'description',
  isActive: 'isActive'
};

exports.Prisma.PaymentScalarFieldEnum = {
  id: 'id',
  userId: 'userId',
  packageId: 'packageId',
  amount: 'amount',
  authority: 'authority',
  refId: 'refId',
  status: 'status',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
};

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

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

exports.Prisma.NullsOrder = {
  first: 'first',
  last: 'last'
};
exports.Role = exports.$Enums.Role = {
  USER: 'USER',
  ADMIN: 'ADMIN'
};

exports.Position = exports.$Enums.Position = {
  GK: 'GK',
  DEF: 'DEF',
  MID: 'MID',
  FWD: 'FWD'
};

exports.MatchStage = exports.$Enums.MatchStage = {
  GROUP: 'GROUP',
  ROUND_OF_16: 'ROUND_OF_16',
  QUARTER_FINAL: 'QUARTER_FINAL',
  SEMI_FINAL: 'SEMI_FINAL',
  THIRD_PLACE: 'THIRD_PLACE',
  FINAL: 'FINAL'
};

exports.MatchStatus = exports.$Enums.MatchStatus = {
  SCHEDULED: 'SCHEDULED',
  LIVE: 'LIVE',
  FINISHED: 'FINISHED'
};

exports.TeamStatus = exports.$Enums.TeamStatus = {
  PENDING: 'PENDING',
  APPROVED: 'APPROVED',
  REJECTED: 'REJECTED',
  ACTIVE: 'ACTIVE',
  INACTIVE: 'INACTIVE'
};

exports.PaymentStatus = exports.$Enums.PaymentStatus = {
  PENDING: 'PENDING',
  SUCCESS: 'SUCCESS',
  FAILED: 'FAILED'
};

exports.CardTier = exports.$Enums.CardTier = {
  BRONZE: 'BRONZE',
  SILVER: 'SILVER',
  GOLD: 'GOLD'
};

exports.EventType = exports.$Enums.EventType = {
  GOAL: 'GOAL',
  ASSIST: 'ASSIST',
  YELLOW_CARD: 'YELLOW_CARD',
  RED_CARD: 'RED_CARD',
  SECOND_YELLOW: 'SECOND_YELLOW',
  SUBSTITUTION_IN: 'SUBSTITUTION_IN',
  SUBSTITUTION_OUT: 'SUBSTITUTION_OUT',
  INJURY_NO_SUB: 'INJURY_NO_SUB',
  CLEAN_SHEET: 'CLEAN_SHEET',
  PENALTY_SAVED: 'PENALTY_SAVED',
  PENALTY_MISSED: 'PENALTY_MISSED',
  OWN_GOAL: 'OWN_GOAL',
  EXTRA_TIME_BONUS: 'EXTRA_TIME_BONUS',
  MOTM: 'MOTM'
};

exports.GoldenCardStatus = exports.$Enums.GoldenCardStatus = {
  SEALED: 'SEALED',
  OPENED: 'OPENED'
};

exports.SpecialCardState = exports.$Enums.SpecialCardState = {
  IN_INVENTORY: 'IN_INVENTORY',
  IN_TEAM: 'IN_TEAM',
  SOLD: 'SOLD'
};

exports.Prisma.ModelName = {
  Country: 'Country',
  Group: 'Group',
  Player: 'Player',
  Match: 'Match',
  Round: 'Round',
  Gameweek: 'Gameweek',
  MatchEvent: 'MatchEvent',
  MatchLineup: 'MatchLineup',
  PlayerMatchStat: 'PlayerMatchStat',
  ScoringRule: 'ScoringRule',
  User: 'User',
  LoginOtp: 'LoginOtp',
  FantasyNews: 'FantasyNews',
  DailyQuiz: 'DailyQuiz',
  QuizQuestion: 'QuizQuestion',
  QuizSubmission: 'QuizSubmission',
  GoldenCard: 'GoldenCard',
  Session: 'Session',
  Team: 'Team',
  TeamPlayer: 'TeamPlayer',
  Package: 'Package',
  Payment: 'Payment'
};
/**
 * Create the Client
 */
const config = {
  "generator": {
    "name": "client",
    "provider": {
      "fromEnvVar": null,
      "value": "prisma-client-js"
    },
    "output": {
      "value": "C:\\Users\\s.roosta\\Desktop\\football-next\\lib\\generated\\prisma",
      "fromEnvVar": null
    },
    "config": {
      "engineType": "client"
    },
    "binaryTargets": [
      {
        "fromEnvVar": null,
        "value": "windows",
        "native": true
      }
    ],
    "previewFeatures": [],
    "sourceFilePath": "C:\\Users\\s.roosta\\Desktop\\football-next\\prisma\\schema.prisma",
    "isCustomOutput": true
  },
  "relativeEnvPaths": {
    "rootEnvPath": "../../../.env",
    "schemaEnvPath": "../../../.env"
  },
  "relativePath": "../../../prisma",
  "clientVersion": "6.19.3",
  "engineVersion": "c2990dca591cba766e3b7ef5d9e8a84796e47ab7",
  "datasourceNames": [
    "db"
  ],
  "activeProvider": "postgresql",
  "postinstall": false,
  "inlineDatasources": {
    "db": {
      "url": {
        "fromEnvVar": "DATABASE_URL",
        "value": null
      }
    }
  },
  "inlineSchema": "generator client {\n  provider   = \"prisma-client-js\"\n  engineType = \"client\"\n  output     = \"../lib/generated/prisma\"\n}\n\ndatasource db {\n  provider = \"postgresql\"\n  url      = env(\"DATABASE_URL\")\n}\n\nenum Role {\n  USER\n  ADMIN\n}\n\nenum Position {\n  GK\n  DEF\n  MID\n  FWD\n}\n\nenum MatchStage {\n  GROUP\n  ROUND_OF_16\n  QUARTER_FINAL\n  SEMI_FINAL\n  THIRD_PLACE\n  FINAL\n}\n\nenum MatchStatus {\n  SCHEDULED\n  LIVE\n  FINISHED\n}\n\nenum TeamStatus {\n  PENDING\n  APPROVED\n  REJECTED\n  ACTIVE\n  INACTIVE\n}\n\nenum PaymentStatus {\n  PENDING\n  SUCCESS\n  FAILED\n}\n\nenum CardTier {\n  BRONZE\n  SILVER\n  GOLD\n}\n\nenum EventType {\n  GOAL\n  ASSIST\n  YELLOW_CARD\n  RED_CARD\n  SECOND_YELLOW\n  SUBSTITUTION_IN\n  SUBSTITUTION_OUT\n  INJURY_NO_SUB\n  CLEAN_SHEET\n  PENALTY_SAVED\n  PENALTY_MISSED\n  OWN_GOAL\n  EXTRA_TIME_BONUS\n  MOTM\n}\n\nmodel Country {\n  id                     String   @id @default(cuid())\n  name                   String   @unique\n  code                   String   @unique\n  flagUrl                String?\n  flagImage              String? // نام فایل پرچم مثل Flag_of_Australia.webp\n  confederation          String? // کنفدراسیون (UEFA, AFC, CAF, ...)\n  qualificationMethod    String? // شیوه راه‌یابی\n  qualificationDate      String? // تاریخ راه‌یابی\n  participationHistory   String? // سابقه شرکت\n  bestResult             String? // بهترین نتیجه\n  description            String?  @db.Text // توضیحات کامل\n  defaultFormation       String   @default(\"4-3-3\")\n  defaultLineupPlayerIds String[] @default([])\n  defaultCaptainId       String? // شناسه کاپیتان پیش‌فرض\n  group                  Group?   @relation(fields: [groupId], references: [id])\n  groupId                String?\n  isEliminated           Boolean  @default(false)\n  players                Player[]\n  homeMatches            Match[]  @relation(\"HomeTeam\")\n  awayMatches            Match[]  @relation(\"AwayTeam\")\n}\n\nmodel Group {\n  id        String    @id @default(cuid())\n  name      String    @unique\n  countries Country[]\n}\n\nmodel Player {\n  id                   String            @id @default(cuid())\n  name                 String\n  image                String? // نام فایل تصویر در public/uploads/players/\n  position             Position\n  countryId            String\n  country              Country           @relation(fields: [countryId], references: [id])\n  price                Float             @default(5.0)\n  totalPoints          Int               @default(0)\n  isActive             Boolean           @default(true)\n  isGoldenCardEligible Boolean           @default(false)\n  cardTier             CardTier          @default(BRONZE)\n  createdAt            DateTime          @default(now())\n  updatedAt            DateTime          @updatedAt\n  matchStats           PlayerMatchStat[]\n  teamPlayers          TeamPlayer[]\n  events               MatchEvent[]\n  goldenCards          GoldenCard[]\n}\n\nmodel Match {\n  id               String            @id @default(cuid())\n  homeTeamId       String\n  awayTeamId       String\n  homeTeam         Country           @relation(\"HomeTeam\", fields: [homeTeamId], references: [id])\n  awayTeam         Country           @relation(\"AwayTeam\", fields: [awayTeamId], references: [id])\n  homeScore        Int?\n  awayScore        Int?\n  stage            MatchStage        @default(GROUP)\n  status           MatchStatus       @default(SCHEDULED)\n  matchDate        DateTime\n  matchDatePersian String? // تاریخ شمسی\n  stadium          String? // نام ورزشگاه\n  city             String? // شهر\n  referee          String? // داور اصلی\n  assistant1       String? // کمک داور 1\n  assistant2       String? // کمک داور 2\n  fourthOfficial   String? // داور چهارم\n  attendance       Int? // تعداد تماشاگر\n  weather          String? // وضعیت آب و هوا\n  description      String?           @db.Text // توضیحات بازی\n  roundId          String?\n  round            Round?            @relation(fields: [roundId], references: [id])\n  playerStats      PlayerMatchStat[]\n  events           MatchEvent[]\n  lineups          MatchLineup[]\n  createdAt        DateTime          @default(now())\n}\n\nmodel Round {\n  id        String   @id @default(cuid())\n  number    Int      @unique\n  name      String\n  isActive  Boolean  @default(false)\n  deadline  DateTime\n  matches   Match[]\n  createdAt DateTime @default(now())\n}\n\nmodel Gameweek {\n  id        String   @id @default(cuid())\n  number    Int      @unique\n  name      String\n  isActive  Boolean  @default(false)\n  deadline  DateTime\n  createdAt DateTime @default(now())\n}\n\nmodel MatchEvent {\n  id        String    @id @default(cuid())\n  matchId   String\n  playerId  String\n  match     Match     @relation(fields: [matchId], references: [id], onDelete: Cascade)\n  player    Player    @relation(fields: [playerId], references: [id], onDelete: Cascade)\n  type      EventType\n  minute    Int?\n  extraInfo String?\n  createdAt DateTime  @default(now())\n}\n\nmodel MatchLineup {\n  id        String   @id @default(cuid())\n  matchId   String\n  countryId String\n  match     Match    @relation(fields: [matchId], references: [id], onDelete: Cascade)\n  formation String\n  playerIds String[]\n}\n\nmodel PlayerMatchStat {\n  id             String  @id @default(cuid())\n  playerId       String\n  matchId        String\n  player         Player  @relation(fields: [playerId], references: [id], onDelete: Cascade)\n  match          Match   @relation(fields: [matchId], references: [id], onDelete: Cascade)\n  goals          Int     @default(0)\n  assists        Int     @default(0)\n  yellowCards    Int     @default(0)\n  redCards       Int     @default(0)\n  minutesPlayed  Int     @default(0)\n  cleanSheet     Boolean @default(false)\n  penaltySaved   Int     @default(0)\n  penaltyMissed  Int     @default(0)\n  ownGoals       Int     @default(0)\n  isMotm         Boolean @default(false)\n  extraTimeBonus Int     @default(0)\n  points         Int     @default(0)\n\n  @@unique([playerId, matchId])\n}\n\nmodel ScoringRule {\n  id        String    @id @default(cuid())\n  position  Position\n  eventType EventType\n  points    Int\n  updatedAt DateTime  @updatedAt\n  updatedBy String?\n\n  @@unique([position, eventType])\n}\n\nmodel User {\n  id              String           @id @default(cuid())\n  name            String?\n  email           String           @unique\n  phone           String?          @unique\n  password        String\n  role            Role             @default(USER)\n  createdAt       DateTime         @default(now())\n  team            Team?\n  sessions        Session[]\n  payments        Payment[]\n  quizSubmissions QuizSubmission[]\n  goldenCards     GoldenCard[]\n}\n\nmodel LoginOtp {\n  id         String    @id @default(cuid())\n  phone      String\n  codeHash   String\n  attempts   Int       @default(0)\n  expiresAt  DateTime\n  consumedAt DateTime?\n  createdAt  DateTime  @default(now())\n\n  @@index([phone, createdAt])\n}\n\nmodel FantasyNews {\n  id          String   @id @default(cuid())\n  icon        String\n  title       String\n  description String   @db.Text\n  newsTime    DateTime\n  createdAt   DateTime @default(now())\n  updatedAt   DateTime @updatedAt\n\n  @@index([newsTime])\n}\n\nenum GoldenCardStatus {\n  SEALED\n  OPENED\n}\n\nenum SpecialCardState {\n  IN_INVENTORY\n  IN_TEAM\n  SOLD\n}\n\nmodel DailyQuiz {\n  id                 String           @id @default(cuid())\n  date               DateTime         @db.Date\n  windowStart        DateTime\n  windowEnd          DateTime\n  goldWinnersCount   Int              @default(1)\n  silverWinnersCount Int              @default(0)\n  bronzeWinnersCount Int              @default(0)\n  goldMinCorrect     Int?\n  silverMinCorrect   Int?\n  bronzeMinCorrect   Int?\n  isProcessed        Boolean          @default(false)\n  createdAt          DateTime         @default(now())\n  questions          QuizQuestion[]\n  submissions        QuizSubmission[]\n  awardedCards       GoldenCard[]\n\n  @@unique([date])\n}\n\nmodel QuizQuestion {\n  id            String    @id @default(cuid())\n  quizId        String\n  quiz          DailyQuiz @relation(fields: [quizId], references: [id], onDelete: Cascade)\n  questionText  String\n  options       String[]\n  correctAnswer Int // index of correct option (0-based)\n  order         Int       @default(0)\n}\n\nmodel QuizSubmission {\n  id             String    @id @default(cuid())\n  userId         String\n  quizId         String\n  user           User      @relation(fields: [userId], references: [id], onDelete: Cascade)\n  quiz           DailyQuiz @relation(fields: [quizId], references: [id], onDelete: Cascade)\n  answers        Int[] // user's selected option indexes\n  correctAnswers Int       @default(0)\n  score          Int       @default(0) // percentage 0-100\n  submittedAt    DateTime  @default(now())\n\n  @@unique([userId, quizId])\n}\n\nmodel GoldenCard {\n  id           String           @id @default(cuid())\n  userId       String\n  quizId       String?\n  playerId     String\n  user         User             @relation(fields: [userId], references: [id], onDelete: Cascade)\n  quiz         DailyQuiz?       @relation(fields: [quizId], references: [id], onDelete: SetNull)\n  player       Player           @relation(fields: [playerId], references: [id], onDelete: Cascade)\n  cardTier     CardTier         @default(GOLD)\n  status       GoldenCardStatus @default(SEALED)\n  state        SpecialCardState @default(IN_INVENTORY)\n  acquiredDate DateTime         @default(now())\n  openedAt     DateTime?\n  teamPlayer   TeamPlayer?\n}\n\nmodel Session {\n  id           String   @id @default(cuid())\n  sessionToken String   @unique\n  userId       String\n  expires      DateTime\n  user         User     @relation(fields: [userId], references: [id], onDelete: Cascade)\n}\n\nmodel Team {\n  id          String       @id @default(cuid())\n  name        String\n  userId      String       @unique\n  user        User         @relation(fields: [userId], references: [id], onDelete: Cascade)\n  budget      Float        @default(100.0)\n  totalPoints Int          @default(0)\n  formation   String       @default(\"4-3-3\")\n  status      TeamStatus   @default(INACTIVE)\n  createdAt   DateTime     @default(now())\n  players     TeamPlayer[]\n}\n\nmodel TeamPlayer {\n  teamId        String\n  playerId      String\n  goldenCardId  String?     @unique\n  isCaptain     Boolean     @default(false)\n  isViceCaptain Boolean     @default(false)\n  isBench       Boolean     @default(false)\n  positionIndex Int         @default(0)\n  team          Team        @relation(fields: [teamId], references: [id], onDelete: Cascade)\n  player        Player      @relation(fields: [playerId], references: [id], onDelete: Cascade)\n  goldenCard    GoldenCard? @relation(fields: [goldenCardId], references: [id], onDelete: SetNull)\n\n  @@id([teamId, playerId])\n}\n\nmodel Package {\n  id          String    @id @default(cuid())\n  name        String\n  budgetBonus Float\n  price       Int\n  description String?\n  isActive    Boolean   @default(true)\n  payments    Payment[]\n}\n\nmodel Payment {\n  id        String        @id @default(cuid())\n  userId    String\n  packageId String\n  user      User          @relation(fields: [userId], references: [id])\n  package   Package       @relation(fields: [packageId], references: [id])\n  amount    Int\n  authority String?       @unique\n  refId     String?\n  status    PaymentStatus @default(PENDING)\n  createdAt DateTime      @default(now())\n  updatedAt DateTime      @updatedAt\n}\n",
  "inlineSchemaHash": "97ad530f39fbd0a5b25054636137b2d4c6123d03a537c2ff3b9a51a4155369d0",
  "copyEngine": true
}
config.dirname = '/'

config.runtimeDataModel = JSON.parse("{\"models\":{\"Country\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"flagUrl\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"flagImage\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"confederation\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"qualificationMethod\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"qualificationDate\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"participationHistory\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"bestResult\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"defaultFormation\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"defaultLineupPlayerIds\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"defaultCaptainId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"group\",\"kind\":\"object\",\"type\":\"Group\",\"relationName\":\"CountryToGroup\"},{\"name\":\"groupId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isEliminated\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"players\",\"kind\":\"object\",\"type\":\"Player\",\"relationName\":\"CountryToPlayer\"},{\"name\":\"homeMatches\",\"kind\":\"object\",\"type\":\"Match\",\"relationName\":\"HomeTeam\"},{\"name\":\"awayMatches\",\"kind\":\"object\",\"type\":\"Match\",\"relationName\":\"AwayTeam\"}],\"dbName\":null},\"Group\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"countries\",\"kind\":\"object\",\"type\":\"Country\",\"relationName\":\"CountryToGroup\"}],\"dbName\":null},\"Player\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"image\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"position\",\"kind\":\"enum\",\"type\":\"Position\"},{\"name\":\"countryId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country\",\"kind\":\"object\",\"type\":\"Country\",\"relationName\":\"CountryToPlayer\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"totalPoints\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"isGoldenCardEligible\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"cardTier\",\"kind\":\"enum\",\"type\":\"CardTier\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"matchStats\",\"kind\":\"object\",\"type\":\"PlayerMatchStat\",\"relationName\":\"PlayerToPlayerMatchStat\"},{\"name\":\"teamPlayers\",\"kind\":\"object\",\"type\":\"TeamPlayer\",\"relationName\":\"PlayerToTeamPlayer\"},{\"name\":\"events\",\"kind\":\"object\",\"type\":\"MatchEvent\",\"relationName\":\"MatchEventToPlayer\"},{\"name\":\"goldenCards\",\"kind\":\"object\",\"type\":\"GoldenCard\",\"relationName\":\"GoldenCardToPlayer\"}],\"dbName\":null},\"Match\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"homeTeamId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"awayTeamId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"homeTeam\",\"kind\":\"object\",\"type\":\"Country\",\"relationName\":\"HomeTeam\"},{\"name\":\"awayTeam\",\"kind\":\"object\",\"type\":\"Country\",\"relationName\":\"AwayTeam\"},{\"name\":\"homeScore\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"awayScore\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"stage\",\"kind\":\"enum\",\"type\":\"MatchStage\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"MatchStatus\"},{\"name\":\"matchDate\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"matchDatePersian\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"stadium\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"city\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"referee\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"assistant1\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"assistant2\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fourthOfficial\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attendance\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"weather\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"roundId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"round\",\"kind\":\"object\",\"type\":\"Round\",\"relationName\":\"MatchToRound\"},{\"name\":\"playerStats\",\"kind\":\"object\",\"type\":\"PlayerMatchStat\",\"relationName\":\"MatchToPlayerMatchStat\"},{\"name\":\"events\",\"kind\":\"object\",\"type\":\"MatchEvent\",\"relationName\":\"MatchToMatchEvent\"},{\"name\":\"lineups\",\"kind\":\"object\",\"type\":\"MatchLineup\",\"relationName\":\"MatchToMatchLineup\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"Round\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"number\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"deadline\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"matches\",\"kind\":\"object\",\"type\":\"Match\",\"relationName\":\"MatchToRound\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"Gameweek\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"number\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"deadline\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"MatchEvent\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"matchId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"playerId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"match\",\"kind\":\"object\",\"type\":\"Match\",\"relationName\":\"MatchToMatchEvent\"},{\"name\":\"player\",\"kind\":\"object\",\"type\":\"Player\",\"relationName\":\"MatchEventToPlayer\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"EventType\"},{\"name\":\"minute\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"extraInfo\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"MatchLineup\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"matchId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"countryId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"match\",\"kind\":\"object\",\"type\":\"Match\",\"relationName\":\"MatchToMatchLineup\"},{\"name\":\"formation\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"playerIds\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"PlayerMatchStat\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"playerId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"matchId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"player\",\"kind\":\"object\",\"type\":\"Player\",\"relationName\":\"PlayerToPlayerMatchStat\"},{\"name\":\"match\",\"kind\":\"object\",\"type\":\"Match\",\"relationName\":\"MatchToPlayerMatchStat\"},{\"name\":\"goals\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"assists\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"yellowCards\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"redCards\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"minutesPlayed\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"cleanSheet\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"penaltySaved\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"penaltyMissed\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ownGoals\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"isMotm\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"extraTimeBonus\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"points\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"ScoringRule\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"position\",\"kind\":\"enum\",\"type\":\"Position\"},{\"name\":\"eventType\",\"kind\":\"enum\",\"type\":\"EventType\"},{\"name\":\"points\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedBy\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"role\",\"kind\":\"enum\",\"type\":\"Role\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"team\",\"kind\":\"object\",\"type\":\"Team\",\"relationName\":\"TeamToUser\"},{\"name\":\"sessions\",\"kind\":\"object\",\"type\":\"Session\",\"relationName\":\"SessionToUser\"},{\"name\":\"payments\",\"kind\":\"object\",\"type\":\"Payment\",\"relationName\":\"PaymentToUser\"},{\"name\":\"quizSubmissions\",\"kind\":\"object\",\"type\":\"QuizSubmission\",\"relationName\":\"QuizSubmissionToUser\"},{\"name\":\"goldenCards\",\"kind\":\"object\",\"type\":\"GoldenCard\",\"relationName\":\"GoldenCardToUser\"}],\"dbName\":null},\"LoginOtp\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"codeHash\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attempts\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"consumedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"FantasyNews\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"icon\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"newsTime\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"DailyQuiz\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"windowStart\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"windowEnd\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"goldWinnersCount\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"silverWinnersCount\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"bronzeWinnersCount\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"goldMinCorrect\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"silverMinCorrect\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"bronzeMinCorrect\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"isProcessed\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"questions\",\"kind\":\"object\",\"type\":\"QuizQuestion\",\"relationName\":\"DailyQuizToQuizQuestion\"},{\"name\":\"submissions\",\"kind\":\"object\",\"type\":\"QuizSubmission\",\"relationName\":\"DailyQuizToQuizSubmission\"},{\"name\":\"awardedCards\",\"kind\":\"object\",\"type\":\"GoldenCard\",\"relationName\":\"DailyQuizToGoldenCard\"}],\"dbName\":null},\"QuizQuestion\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quizId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quiz\",\"kind\":\"object\",\"type\":\"DailyQuiz\",\"relationName\":\"DailyQuizToQuizQuestion\"},{\"name\":\"questionText\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"options\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"correctAnswer\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"order\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"QuizSubmission\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quizId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"QuizSubmissionToUser\"},{\"name\":\"quiz\",\"kind\":\"object\",\"type\":\"DailyQuiz\",\"relationName\":\"DailyQuizToQuizSubmission\"},{\"name\":\"answers\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"correctAnswers\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"score\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"submittedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"GoldenCard\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quizId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"playerId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"GoldenCardToUser\"},{\"name\":\"quiz\",\"kind\":\"object\",\"type\":\"DailyQuiz\",\"relationName\":\"DailyQuizToGoldenCard\"},{\"name\":\"player\",\"kind\":\"object\",\"type\":\"Player\",\"relationName\":\"GoldenCardToPlayer\"},{\"name\":\"cardTier\",\"kind\":\"enum\",\"type\":\"CardTier\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"GoldenCardStatus\"},{\"name\":\"state\",\"kind\":\"enum\",\"type\":\"SpecialCardState\"},{\"name\":\"acquiredDate\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"openedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"teamPlayer\",\"kind\":\"object\",\"type\":\"TeamPlayer\",\"relationName\":\"GoldenCardToTeamPlayer\"}],\"dbName\":null},\"Session\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sessionToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expires\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"SessionToUser\"}],\"dbName\":null},\"Team\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"TeamToUser\"},{\"name\":\"budget\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"totalPoints\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"formation\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"TeamStatus\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"players\",\"kind\":\"object\",\"type\":\"TeamPlayer\",\"relationName\":\"TeamToTeamPlayer\"}],\"dbName\":null},\"TeamPlayer\":{\"fields\":[{\"name\":\"teamId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"playerId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"goldenCardId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isCaptain\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"isViceCaptain\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"isBench\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"positionIndex\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"team\",\"kind\":\"object\",\"type\":\"Team\",\"relationName\":\"TeamToTeamPlayer\"},{\"name\":\"player\",\"kind\":\"object\",\"type\":\"Player\",\"relationName\":\"PlayerToTeamPlayer\"},{\"name\":\"goldenCard\",\"kind\":\"object\",\"type\":\"GoldenCard\",\"relationName\":\"GoldenCardToTeamPlayer\"}],\"dbName\":null},\"Package\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"budgetBonus\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"payments\",\"kind\":\"object\",\"type\":\"Payment\",\"relationName\":\"PackageToPayment\"}],\"dbName\":null},\"Payment\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"packageId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"PaymentToUser\"},{\"name\":\"package\",\"kind\":\"object\",\"type\":\"Package\",\"relationName\":\"PackageToPayment\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"authority\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"refId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"PaymentStatus\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}")
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
config.engineWasm = undefined
config.compilerWasm = {
  getRuntime: async () => require('./query_compiler_bg.js'),
  getQueryCompilerWasmModule: async () => {
    const loader = (await import('#wasm-compiler-loader')).default
    const compiler = (await loader).default
    return compiler
  }
}

config.injectableEdgeEnv = () => ({
  parsed: {
    DATABASE_URL: typeof globalThis !== 'undefined' && globalThis['DATABASE_URL'] || typeof process !== 'undefined' && process.env && process.env.DATABASE_URL || undefined
  }
})

if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) {
  Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined)
}

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

