import { PrismaClient } from '@prisma/client';

/**
 * Plain Prisma client — no BigInt→Number revive.
 *
 * Credits / Pr / prices are stored as decimal **strings** and parsed with
 * `toCentsBigInt` / `centsJson` so values can grow past Number.MAX_SAFE_INTEGER.
 * Any remaining Prisma BigInt fields (e.g. playTimeSeconds) stay as bigint until
 * an API boundary stringifies them (`res.json` replacer in index.js) or an
 * explicit Number()/toString() conversion.
 */
export const prisma = new PrismaClient();
