2026-04-10 15:43:07 +02:00
|
|
|
|
|
|
|
|
/* !!! 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',
|
2026-04-10 21:41:49 +02:00
|
|
|
Game: 'Game',
|
|
|
|
|
DailyPuzzle: 'DailyPuzzle',
|
2026-04-11 17:37:56 +02:00
|
|
|
Room: 'Room',
|
2026-04-10 21:41:49 +02:00
|
|
|
DailyResult: 'DailyResult'
|
2026-04-10 15:43:07 +02:00
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Enums
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export const TransactionIsolationLevel = runtime.makeStrictEnum({
|
2026-04-11 15:50:44 +02:00
|
|
|
ReadUncommitted: 'ReadUncommitted',
|
|
|
|
|
ReadCommitted: 'ReadCommitted',
|
|
|
|
|
RepeatableRead: 'RepeatableRead',
|
2026-04-10 15:43:07 +02:00
|
|
|
Serializable: 'Serializable'
|
|
|
|
|
} as const)
|
|
|
|
|
|
|
|
|
|
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const UserScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
name: 'name',
|
|
|
|
|
email: 'email',
|
|
|
|
|
password: 'password',
|
2026-04-11 15:10:08 +02:00
|
|
|
banned: 'banned',
|
2026-04-10 15:43:07 +02:00
|
|
|
createdAt: 'createdAt'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const GameScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
userId: 'userId',
|
|
|
|
|
mode: 'mode',
|
|
|
|
|
startArticle: 'startArticle',
|
|
|
|
|
targetArticle: 'targetArticle',
|
|
|
|
|
path: 'path',
|
|
|
|
|
clicks: 'clicks',
|
|
|
|
|
timeSeconds: 'timeSeconds',
|
|
|
|
|
won: 'won',
|
|
|
|
|
playedAt: 'playedAt'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type GameScalarFieldEnum = (typeof GameScalarFieldEnum)[keyof typeof GameScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
2026-04-10 21:41:49 +02:00
|
|
|
export const DailyPuzzleScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
date: 'date',
|
|
|
|
|
startArticle: 'startArticle',
|
|
|
|
|
targetArticle: 'targetArticle'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type DailyPuzzleScalarFieldEnum = (typeof DailyPuzzleScalarFieldEnum)[keyof typeof DailyPuzzleScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
2026-04-11 17:37:56 +02:00
|
|
|
export const RoomScalarFieldEnum = {
|
|
|
|
|
code: 'code',
|
|
|
|
|
players: 'players',
|
|
|
|
|
phase: 'phase',
|
|
|
|
|
round: 'round',
|
|
|
|
|
totalRounds: 'totalRounds',
|
|
|
|
|
maxPlayers: 'maxPlayers',
|
2026-04-11 21:58:35 +02:00
|
|
|
gameMode: 'gameMode',
|
2026-04-11 22:02:06 +02:00
|
|
|
searchAllowed: 'searchAllowed',
|
2026-04-11 22:41:40 +02:00
|
|
|
timeLimit: 'timeLimit',
|
2026-04-11 17:37:56 +02:00
|
|
|
startArticle: 'startArticle',
|
|
|
|
|
targetArticle: 'targetArticle',
|
|
|
|
|
roundWinner: 'roundWinner',
|
|
|
|
|
countdownStart: 'countdownStart',
|
|
|
|
|
roundStart: 'roundStart',
|
|
|
|
|
createdAt: 'createdAt',
|
|
|
|
|
updatedAt: 'updatedAt'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type RoomScalarFieldEnum = (typeof RoomScalarFieldEnum)[keyof typeof RoomScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
2026-04-10 21:41:49 +02:00
|
|
|
export const DailyResultScalarFieldEnum = {
|
|
|
|
|
id: 'id',
|
|
|
|
|
puzzleId: 'puzzleId',
|
|
|
|
|
userId: 'userId',
|
|
|
|
|
path: 'path',
|
|
|
|
|
clicks: 'clicks',
|
|
|
|
|
timeSeconds: 'timeSeconds',
|
|
|
|
|
won: 'won',
|
|
|
|
|
playedAt: 'playedAt'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type DailyResultScalarFieldEnum = (typeof DailyResultScalarFieldEnum)[keyof typeof DailyResultScalarFieldEnum]
|
|
|
|
|
|
|
|
|
|
|
2026-04-10 15:43:07 +02:00
|
|
|
export const SortOrder = {
|
|
|
|
|
asc: 'asc',
|
|
|
|
|
desc: 'desc'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
2026-04-11 15:50:44 +02:00
|
|
|
|
2026-04-11 17:37:56 +02:00
|
|
|
export const JsonNullValueInput = {
|
|
|
|
|
JsonNull: JsonNull
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
|
|
|
|
|
|
|
|
|
|
|
2026-04-11 15:50:44 +02:00
|
|
|
export const QueryMode = {
|
|
|
|
|
default: 'default',
|
|
|
|
|
insensitive: 'insensitive'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
|
|
|
|
2026-04-11 17:37:56 +02:00
|
|
|
|
|
|
|
|
export const JsonNullValueFilter = {
|
|
|
|
|
DbNull: DbNull,
|
|
|
|
|
JsonNull: JsonNull,
|
|
|
|
|
AnyNull: AnyNull
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const NullsOrder = {
|
|
|
|
|
first: 'first',
|
|
|
|
|
last: 'last'
|
|
|
|
|
} as const
|
|
|
|
|
|
|
|
|
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
|
|
|
|