Refactor ESLint configuration and update code formatting: Standardize quotes in eslint.config.mjs, next.config.js, and various TypeScript files for consistency. Add Prettier as a dependency and include formatting scripts in package.json. Clean up unnecessary whitespace in multiple files to enhance code readability.
This commit is contained in:
10
.prettierignore
Normal file
10
.prettierignore
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
node_modules
|
||||||
|
.next
|
||||||
|
out
|
||||||
|
build
|
||||||
|
dist
|
||||||
|
*.db
|
||||||
|
*.db-journal
|
||||||
|
pnpm-lock.yaml
|
||||||
|
package-lock.json
|
||||||
|
yarn.lock
|
||||||
8
.prettierrc
Normal file
8
.prettierrc
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"semi": true,
|
||||||
|
"trailingComma": "es5",
|
||||||
|
"singleQuote": false,
|
||||||
|
"printWidth": 80,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"useTabs": false
|
||||||
|
}
|
||||||
@@ -57,4 +57,3 @@ docker-compose exec app sh
|
|||||||
# Voir les logs en temps réel
|
# Voir les logs en temps réel
|
||||||
docker-compose logs -f app
|
docker-compose logs -f app
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -45,4 +45,3 @@ export async function GET() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,10 @@ export async function POST(request: Request) {
|
|||||||
const file = formData.get("file") as File;
|
const file = formData.get("file") as File;
|
||||||
|
|
||||||
if (!file) {
|
if (!file) {
|
||||||
return NextResponse.json({ error: "Aucun fichier fourni" }, { status: 400 });
|
return NextResponse.json(
|
||||||
|
{ error: "Aucun fichier fourni" },
|
||||||
|
{ status: 400 }
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Vérifier le type de fichier
|
// Vérifier le type de fichier
|
||||||
@@ -55,4 +58,3 @@ export async function POST(request: Request) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -53,21 +53,21 @@ export async function PUT(request: Request) {
|
|||||||
where: { id: "global" },
|
where: { id: "global" },
|
||||||
update: {
|
update: {
|
||||||
homeBackground:
|
homeBackground:
|
||||||
homeBackground === "" ? null : homeBackground ?? undefined,
|
homeBackground === "" ? null : (homeBackground ?? undefined),
|
||||||
eventsBackground:
|
eventsBackground:
|
||||||
eventsBackground === "" ? null : eventsBackground ?? undefined,
|
eventsBackground === "" ? null : (eventsBackground ?? undefined),
|
||||||
leaderboardBackground:
|
leaderboardBackground:
|
||||||
leaderboardBackground === ""
|
leaderboardBackground === ""
|
||||||
? null
|
? null
|
||||||
: leaderboardBackground ?? undefined,
|
: (leaderboardBackground ?? undefined),
|
||||||
},
|
},
|
||||||
create: {
|
create: {
|
||||||
id: "global",
|
id: "global",
|
||||||
homeBackground: homeBackground === "" ? null : homeBackground ?? null,
|
homeBackground: homeBackground === "" ? null : (homeBackground ?? null),
|
||||||
eventsBackground:
|
eventsBackground:
|
||||||
eventsBackground === "" ? null : eventsBackground ?? null,
|
eventsBackground === "" ? null : (eventsBackground ?? null),
|
||||||
leaderboardBackground:
|
leaderboardBackground:
|
||||||
leaderboardBackground === "" ? null : leaderboardBackground ?? null,
|
leaderboardBackground === "" ? null : (leaderboardBackground ?? null),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -196,4 +196,3 @@ export async function DELETE(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,4 +41,3 @@ export async function GET() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { handlers } from "@/lib/auth";
|
import { handlers } from "@/lib/auth";
|
||||||
|
|
||||||
export const { GET, POST } = handlers;
|
export const { GET, POST } = handlers;
|
||||||
|
|
||||||
|
|||||||
@@ -139,4 +139,3 @@ export async function GET(
|
|||||||
return NextResponse.json({ registered: false });
|
return NextResponse.json({ registered: false });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,4 +28,3 @@ export async function GET(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,4 +18,3 @@ export async function GET() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,3 @@ import { NextResponse } from "next/server";
|
|||||||
export async function GET() {
|
export async function GET() {
|
||||||
return NextResponse.json({ status: "ok" });
|
return NextResponse.json({ status: "ok" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,10 @@ export async function POST(request: Request) {
|
|||||||
const file = formData.get("file") as File;
|
const file = formData.get("file") as File;
|
||||||
|
|
||||||
if (!file) {
|
if (!file) {
|
||||||
return NextResponse.json({ error: "Aucun fichier fourni" }, { status: 400 });
|
return NextResponse.json(
|
||||||
|
{ error: "Aucun fichier fourni" },
|
||||||
|
{ status: 400 }
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Vérifier le type de fichier
|
// Vérifier le type de fichier
|
||||||
@@ -63,4 +66,3 @@ export async function POST(request: Request) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,9 @@ export async function PUT(request: Request) {
|
|||||||
|
|
||||||
if (newPassword.length < 6) {
|
if (newPassword.length < 6) {
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{ error: "Le nouveau mot de passe doit contenir au moins 6 caractères" },
|
{
|
||||||
|
error: "Le nouveau mot de passe doit contenir au moins 6 caractères",
|
||||||
|
},
|
||||||
{ status: 400 }
|
{ status: 400 }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -50,7 +52,10 @@ export async function PUT(request: Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Vérifier l'ancien mot de passe
|
// Vérifier l'ancien mot de passe
|
||||||
const isPasswordValid = await bcrypt.compare(currentPassword, user.password);
|
const isPasswordValid = await bcrypt.compare(
|
||||||
|
currentPassword,
|
||||||
|
user.password
|
||||||
|
);
|
||||||
|
|
||||||
if (!isPasswordValid) {
|
if (!isPasswordValid) {
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
@@ -77,4 +82,3 @@ export async function PUT(request: Request) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,10 @@ export async function GET() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!user) {
|
if (!user) {
|
||||||
return NextResponse.json({ error: "Utilisateur non trouvé" }, { status: 404 });
|
return NextResponse.json(
|
||||||
|
{ error: "Utilisateur non trouvé" },
|
||||||
|
{ status: 404 }
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NextResponse.json(user);
|
return NextResponse.json(user);
|
||||||
@@ -66,7 +69,10 @@ export async function PUT(request: Request) {
|
|||||||
|
|
||||||
if (username.length < 3 || username.length > 20) {
|
if (username.length < 3 || username.length > 20) {
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{ error: "Le nom d'utilisateur doit contenir entre 3 et 20 caractères" },
|
{
|
||||||
|
error:
|
||||||
|
"Le nom d'utilisateur doit contenir entre 3 et 20 caractères",
|
||||||
|
},
|
||||||
{ status: 400 }
|
{ status: 400 }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -173,4 +179,3 @@ export async function PUT(request: Request) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,4 +60,3 @@ export async function POST(request: Request) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,10 @@ export async function POST(request: Request) {
|
|||||||
|
|
||||||
if (username.length < 3 || username.length > 20) {
|
if (username.length < 3 || username.length > 20) {
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{ error: "Le nom d'utilisateur doit contenir entre 3 et 20 caractères" },
|
{
|
||||||
|
error:
|
||||||
|
"Le nom d'utilisateur doit contenir entre 3 et 20 caractères",
|
||||||
|
},
|
||||||
{ status: 400 }
|
{ status: 400 }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -151,11 +154,13 @@ export async function POST(request: Request) {
|
|||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error completing registration:", error);
|
console.error("Error completing registration:", error);
|
||||||
const errorMessage = error instanceof Error ? error.message : "Erreur inconnue";
|
const errorMessage =
|
||||||
|
error instanceof Error ? error.message : "Erreur inconnue";
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{ error: `Erreur lors de la finalisation de l'inscription: ${errorMessage}` },
|
{
|
||||||
|
error: `Erreur lors de la finalisation de l'inscription: ${errorMessage}`,
|
||||||
|
},
|
||||||
{ status: 500 }
|
{ status: 500 }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,4 +82,3 @@ export async function POST(request: Request) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,10 @@ export async function GET(
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!user) {
|
if (!user) {
|
||||||
return NextResponse.json({ error: "Utilisateur non trouvé" }, { status: 404 });
|
return NextResponse.json(
|
||||||
|
{ error: "Utilisateur non trouvé" },
|
||||||
|
{ status: 404 }
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NextResponse.json(user);
|
return NextResponse.json(user);
|
||||||
@@ -47,4 +50,3 @@ export async function GET(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ export default function FeedbackPage() {
|
|||||||
const backgroundImage = useBackgroundImage("home", "/got-2.jpg");
|
const backgroundImage = useBackgroundImage("home", "/got-2.jpg");
|
||||||
|
|
||||||
const [event, setEvent] = useState<Event | null>(null);
|
const [event, setEvent] = useState<Event | null>(null);
|
||||||
const [existingFeedback, setExistingFeedback] = useState<Feedback | null>(null);
|
const [existingFeedback, setExistingFeedback] = useState<Feedback | null>(
|
||||||
|
null
|
||||||
|
);
|
||||||
const [loading, setLoading] = useState(true);
|
const [loading, setLoading] = useState(true);
|
||||||
const [submitting, setSubmitting] = useState(false);
|
const [submitting, setSubmitting] = useState(false);
|
||||||
const [error, setError] = useState("");
|
const [error, setError] = useState("");
|
||||||
@@ -256,4 +258,3 @@ export default function FeedbackPage() {
|
|||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,10 @@
|
|||||||
@layer base {
|
@layer base {
|
||||||
body {
|
body {
|
||||||
@apply bg-black text-white;
|
@apply bg-black text-white;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
|
font-family:
|
||||||
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
|
-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
|
||||||
"Helvetica Neue", sans-serif;
|
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
|
||||||
|
sans-serif;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,4 +39,3 @@ export default async function NavigationWrapper() {
|
|||||||
|
|
||||||
return <Navigation initialUserData={userData} initialIsAdmin={isAdmin} />;
|
return <Navigation initialUserData={userData} initialIsAdmin={isAdmin} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
import js from '@eslint/js';
|
import js from "@eslint/js";
|
||||||
import tseslint from '@typescript-eslint/eslint-plugin';
|
import tseslint from "@typescript-eslint/eslint-plugin";
|
||||||
import tsparser from '@typescript-eslint/parser';
|
import tsparser from "@typescript-eslint/parser";
|
||||||
import react from 'eslint-plugin-react';
|
import react from "eslint-plugin-react";
|
||||||
import reactHooks from 'eslint-plugin-react-hooks';
|
import reactHooks from "eslint-plugin-react-hooks";
|
||||||
import globals from 'globals';
|
import globals from "globals";
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
js.configs.recommended,
|
js.configs.recommended,
|
||||||
{
|
{
|
||||||
files: ['**/*.{ts,tsx}'],
|
files: ["**/*.{ts,tsx}"],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parser: tsparser,
|
parser: tsparser,
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 'latest',
|
ecmaVersion: "latest",
|
||||||
sourceType: 'module',
|
sourceType: "module",
|
||||||
ecmaFeatures: {
|
ecmaFeatures: {
|
||||||
jsx: true,
|
jsx: true,
|
||||||
},
|
},
|
||||||
@@ -21,43 +21,45 @@ export default [
|
|||||||
globals: {
|
globals: {
|
||||||
...globals.node,
|
...globals.node,
|
||||||
...globals.browser,
|
...globals.browser,
|
||||||
React: 'readonly',
|
React: "readonly",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
'@typescript-eslint': tseslint,
|
"@typescript-eslint": tseslint,
|
||||||
react,
|
react,
|
||||||
'react-hooks': reactHooks,
|
"react-hooks": reactHooks,
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
...tseslint.configs.recommended.rules,
|
...tseslint.configs.recommended.rules,
|
||||||
...react.configs.recommended.rules,
|
...react.configs.recommended.rules,
|
||||||
...reactHooks.configs.recommended.rules,
|
...reactHooks.configs.recommended.rules,
|
||||||
'react/react-in-jsx-scope': 'off',
|
"react/react-in-jsx-scope": "off",
|
||||||
'react/prop-types': 'off',
|
"react/prop-types": "off",
|
||||||
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
"@typescript-eslint/no-unused-vars": [
|
||||||
'@typescript-eslint/no-explicit-any': 'warn',
|
"warn",
|
||||||
'react/no-unescaped-entities': 'warn',
|
{ argsIgnorePattern: "^_" },
|
||||||
'react/no-unknown-property': ['error', { ignore: ['jsx'] }],
|
],
|
||||||
'react-hooks/set-state-in-effect': 'warn',
|
"@typescript-eslint/no-explicit-any": "warn",
|
||||||
'@typescript-eslint/triple-slash-reference': 'off',
|
"react/no-unescaped-entities": "warn",
|
||||||
|
"react/no-unknown-property": ["error", { ignore: ["jsx"] }],
|
||||||
|
"react-hooks/set-state-in-effect": "warn",
|
||||||
|
"@typescript-eslint/triple-slash-reference": "off",
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
react: {
|
react: {
|
||||||
version: 'detect',
|
version: "detect",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ignores: [
|
ignores: [
|
||||||
'node_modules/**',
|
"node_modules/**",
|
||||||
'.next/**',
|
".next/**",
|
||||||
'out/**',
|
"out/**",
|
||||||
'build/**',
|
"build/**",
|
||||||
'dist/**',
|
"dist/**",
|
||||||
'*.config.js',
|
"*.config.js",
|
||||||
'prisma/generated/**',
|
"prisma/generated/**",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -68,4 +68,3 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
|
|||||||
strategy: "jwt",
|
strategy: "jwt",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -22,4 +22,3 @@ export async function getBackgroundImage(
|
|||||||
return defaultImage;
|
return defaultImage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
output: 'standalone',
|
output: "standalone",
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = nextConfig;
|
module.exports = nextConfig;
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "eslint . --ext .ts,.tsx",
|
"lint": "eslint . --ext .ts,.tsx",
|
||||||
|
"format": "prettier --write .",
|
||||||
|
"format:check": "prettier --check .",
|
||||||
"db:seed": "tsx prisma/seed.ts"
|
"db:seed": "tsx prisma/seed.ts"
|
||||||
},
|
},
|
||||||
"prisma": {
|
"prisma": {
|
||||||
@@ -38,6 +40,7 @@
|
|||||||
"eslint-plugin-react-hooks": "^7.0.1",
|
"eslint-plugin-react-hooks": "^7.0.1",
|
||||||
"globals": "^16.5.0",
|
"globals": "^16.5.0",
|
||||||
"postcss": "^8.4.40",
|
"postcss": "^8.4.40",
|
||||||
|
"prettier": "^3.7.4",
|
||||||
"prisma": "^7.1.0",
|
"prisma": "^7.1.0",
|
||||||
"tailwindcss": "^3.4.7",
|
"tailwindcss": "^3.4.7",
|
||||||
"tsx": "^4.21.0",
|
"tsx": "^4.21.0",
|
||||||
|
|||||||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@@ -78,6 +78,9 @@ importers:
|
|||||||
postcss:
|
postcss:
|
||||||
specifier: ^8.4.40
|
specifier: ^8.4.40
|
||||||
version: 8.5.6
|
version: 8.5.6
|
||||||
|
prettier:
|
||||||
|
specifier: ^3.7.4
|
||||||
|
version: 3.7.4
|
||||||
prisma:
|
prisma:
|
||||||
specifier: ^7.1.0
|
specifier: ^7.1.0
|
||||||
version: 7.1.0(@types/react@19.2.7)(better-sqlite3@12.5.0)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(typescript@5.9.3)
|
version: 7.1.0(@types/react@19.2.7)(better-sqlite3@12.5.0)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(typescript@5.9.3)
|
||||||
@@ -2157,6 +2160,11 @@ packages:
|
|||||||
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
|
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
|
||||||
engines: {node: '>= 0.8.0'}
|
engines: {node: '>= 0.8.0'}
|
||||||
|
|
||||||
|
prettier@3.7.4:
|
||||||
|
resolution: {integrity: sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA==}
|
||||||
|
engines: {node: '>=14'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
prisma@7.1.0:
|
prisma@7.1.0:
|
||||||
resolution: {integrity: sha512-dy/3urE4JjhdiW5b09pGjVhGI7kPESK2VlCDrCqeYK5m5SslAtG5FCGnZWP7E8Sdg+Ow1wV2mhJH5RTFL5gEsw==}
|
resolution: {integrity: sha512-dy/3urE4JjhdiW5b09pGjVhGI7kPESK2VlCDrCqeYK5m5SslAtG5FCGnZWP7E8Sdg+Ow1wV2mhJH5RTFL5gEsw==}
|
||||||
engines: {node: ^20.19 || ^22.12 || >=24.0}
|
engines: {node: ^20.19 || ^22.12 || >=24.0}
|
||||||
@@ -4745,6 +4753,8 @@ snapshots:
|
|||||||
|
|
||||||
prelude-ls@1.2.1: {}
|
prelude-ls@1.2.1: {}
|
||||||
|
|
||||||
|
prettier@3.7.4: {}
|
||||||
|
|
||||||
prisma@7.1.0(@types/react@19.2.7)(better-sqlite3@12.5.0)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(typescript@5.9.3):
|
prisma@7.1.0(@types/react@19.2.7)(better-sqlite3@12.5.0)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(typescript@5.9.3):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@prisma/config': 7.1.0
|
'@prisma/config': 7.1.0
|
||||||
|
|||||||
@@ -3,5 +3,4 @@ module.exports = {
|
|||||||
tailwindcss: {},
|
tailwindcss: {},
|
||||||
autoprefixer: {},
|
autoprefixer: {},
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
@@ -13,37 +12,37 @@
|
|||||||
* 🟢 You can import this file directly.
|
* 🟢 You can import this file directly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as Prisma from './internal/prismaNamespaceBrowser'
|
import * as Prisma from "./internal/prismaNamespaceBrowser";
|
||||||
export { Prisma }
|
export { Prisma };
|
||||||
export * as $Enums from './enums'
|
export * as $Enums from "./enums";
|
||||||
export * from './enums';
|
export * from "./enums";
|
||||||
/**
|
/**
|
||||||
* Model User
|
* Model User
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type User = Prisma.UserModel
|
export type User = Prisma.UserModel;
|
||||||
/**
|
/**
|
||||||
* Model UserPreferences
|
* Model UserPreferences
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type UserPreferences = Prisma.UserPreferencesModel
|
export type UserPreferences = Prisma.UserPreferencesModel;
|
||||||
/**
|
/**
|
||||||
* Model Event
|
* Model Event
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Event = Prisma.EventModel
|
export type Event = Prisma.EventModel;
|
||||||
/**
|
/**
|
||||||
* Model EventRegistration
|
* Model EventRegistration
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type EventRegistration = Prisma.EventRegistrationModel
|
export type EventRegistration = Prisma.EventRegistrationModel;
|
||||||
/**
|
/**
|
||||||
* Model EventFeedback
|
* Model EventFeedback
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type EventFeedback = Prisma.EventFeedbackModel
|
export type EventFeedback = Prisma.EventFeedbackModel;
|
||||||
/**
|
/**
|
||||||
* Model SitePreferences
|
* Model SitePreferences
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type SitePreferences = Prisma.SitePreferencesModel
|
export type SitePreferences = Prisma.SitePreferencesModel;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
@@ -10,18 +9,18 @@
|
|||||||
* 🟢 You can import this file directly.
|
* 🟢 You can import this file directly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as process from 'node:process'
|
import * as process from "node:process";
|
||||||
import * as path from 'node:path'
|
import * as path from "node:path";
|
||||||
import { fileURLToPath } from 'node:url'
|
import { fileURLToPath } from "node:url";
|
||||||
globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
|
globalThis["__dirname"] = path.dirname(fileURLToPath(import.meta.url));
|
||||||
|
|
||||||
import * as runtime from "@prisma/client/runtime/client"
|
import * as runtime from "@prisma/client/runtime/client";
|
||||||
import * as $Enums from "./enums"
|
import * as $Enums from "./enums";
|
||||||
import * as $Class from "./internal/class"
|
import * as $Class from "./internal/class";
|
||||||
import * as Prisma from "./internal/prismaNamespace"
|
import * as Prisma from "./internal/prismaNamespace";
|
||||||
|
|
||||||
export * as $Enums from './enums'
|
export * as $Enums from "./enums";
|
||||||
export * from "./enums"
|
export * from "./enums";
|
||||||
/**
|
/**
|
||||||
* ## Prisma Client
|
* ## Prisma Client
|
||||||
*
|
*
|
||||||
@@ -35,37 +34,43 @@ export * from "./enums"
|
|||||||
*
|
*
|
||||||
* Read more in our [docs](https://pris.ly/d/client).
|
* Read more in our [docs](https://pris.ly/d/client).
|
||||||
*/
|
*/
|
||||||
export const PrismaClient = $Class.getPrismaClientClass()
|
export const PrismaClient = $Class.getPrismaClientClass();
|
||||||
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
export type PrismaClient<
|
||||||
export { Prisma }
|
LogOpts extends Prisma.LogLevel = never,
|
||||||
|
OmitOpts extends Prisma.PrismaClientOptions["omit"] =
|
||||||
|
Prisma.PrismaClientOptions["omit"],
|
||||||
|
ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||||
|
runtime.Types.Extensions.DefaultArgs,
|
||||||
|
> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
||||||
|
export { Prisma };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model User
|
* Model User
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type User = Prisma.UserModel
|
export type User = Prisma.UserModel;
|
||||||
/**
|
/**
|
||||||
* Model UserPreferences
|
* Model UserPreferences
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type UserPreferences = Prisma.UserPreferencesModel
|
export type UserPreferences = Prisma.UserPreferencesModel;
|
||||||
/**
|
/**
|
||||||
* Model Event
|
* Model Event
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Event = Prisma.EventModel
|
export type Event = Prisma.EventModel;
|
||||||
/**
|
/**
|
||||||
* Model EventRegistration
|
* Model EventRegistration
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type EventRegistration = Prisma.EventRegistrationModel
|
export type EventRegistration = Prisma.EventRegistrationModel;
|
||||||
/**
|
/**
|
||||||
* Model EventFeedback
|
* Model EventFeedback
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type EventFeedback = Prisma.EventFeedbackModel
|
export type EventFeedback = Prisma.EventFeedbackModel;
|
||||||
/**
|
/**
|
||||||
* Model SitePreferences
|
* Model SitePreferences
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type SitePreferences = Prisma.SitePreferencesModel
|
export type SitePreferences = Prisma.SitePreferencesModel;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
@@ -9,420 +8,461 @@
|
|||||||
* 🟢 You can import this file directly.
|
* 🟢 You can import this file directly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type * as runtime from "@prisma/client/runtime/client"
|
import type * as runtime from "@prisma/client/runtime/client";
|
||||||
import * as $Enums from "./enums"
|
import * as $Enums from "./enums";
|
||||||
import type * as Prisma from "./internal/prismaNamespace"
|
import type * as Prisma from "./internal/prismaNamespace";
|
||||||
|
|
||||||
|
|
||||||
export type StringFilter<$PrismaModel = never> = {
|
export type StringFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
in?: string[]
|
in?: string[];
|
||||||
notIn?: string[]
|
notIn?: string[];
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type EnumRoleFilter<$PrismaModel = never> = {
|
export type EnumRoleFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.Role | Prisma.EnumRoleFieldRefInput<$PrismaModel>
|
equals?: $Enums.Role | Prisma.EnumRoleFieldRefInput<$PrismaModel>;
|
||||||
in?: $Enums.Role[]
|
in?: $Enums.Role[];
|
||||||
notIn?: $Enums.Role[]
|
notIn?: $Enums.Role[];
|
||||||
not?: Prisma.NestedEnumRoleFilter<$PrismaModel> | $Enums.Role
|
not?: Prisma.NestedEnumRoleFilter<$PrismaModel> | $Enums.Role;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type IntFilter<$PrismaModel = never> = {
|
export type IntFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
in?: number[]
|
in?: number[];
|
||||||
notIn?: number[]
|
notIn?: number[];
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type StringNullableFilter<$PrismaModel = never> = {
|
export type StringNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
||||||
in?: string[] | null
|
in?: string[] | null;
|
||||||
notIn?: string[] | null
|
notIn?: string[] | null;
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type EnumCharacterClassNullableFilter<$PrismaModel = never> = {
|
export type EnumCharacterClassNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.CharacterClass | Prisma.EnumCharacterClassFieldRefInput<$PrismaModel> | null
|
equals?:
|
||||||
in?: $Enums.CharacterClass[] | null
|
| $Enums.CharacterClass
|
||||||
notIn?: $Enums.CharacterClass[] | null
|
| Prisma.EnumCharacterClassFieldRefInput<$PrismaModel>
|
||||||
not?: Prisma.NestedEnumCharacterClassNullableFilter<$PrismaModel> | $Enums.CharacterClass | null
|
| null;
|
||||||
}
|
in?: $Enums.CharacterClass[] | null;
|
||||||
|
notIn?: $Enums.CharacterClass[] | null;
|
||||||
|
not?:
|
||||||
|
| Prisma.NestedEnumCharacterClassNullableFilter<$PrismaModel>
|
||||||
|
| $Enums.CharacterClass
|
||||||
|
| null;
|
||||||
|
};
|
||||||
|
|
||||||
export type DateTimeFilter<$PrismaModel = never> = {
|
export type DateTimeFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
in?: Date[] | string[]
|
in?: Date[] | string[];
|
||||||
notIn?: Date[] | string[]
|
notIn?: Date[] | string[];
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type SortOrderInput = {
|
export type SortOrderInput = {
|
||||||
sort: Prisma.SortOrder
|
sort: Prisma.SortOrder;
|
||||||
nulls?: Prisma.NullsOrder
|
nulls?: Prisma.NullsOrder;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
in?: string[]
|
in?: string[];
|
||||||
notIn?: string[]
|
notIn?: string[];
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedStringFilter<$PrismaModel>
|
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type EnumRoleWithAggregatesFilter<$PrismaModel = never> = {
|
export type EnumRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.Role | Prisma.EnumRoleFieldRefInput<$PrismaModel>
|
equals?: $Enums.Role | Prisma.EnumRoleFieldRefInput<$PrismaModel>;
|
||||||
in?: $Enums.Role[]
|
in?: $Enums.Role[];
|
||||||
notIn?: $Enums.Role[]
|
notIn?: $Enums.Role[];
|
||||||
not?: Prisma.NestedEnumRoleWithAggregatesFilter<$PrismaModel> | $Enums.Role
|
not?: Prisma.NestedEnumRoleWithAggregatesFilter<$PrismaModel> | $Enums.Role;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedEnumRoleFilter<$PrismaModel>
|
_min?: Prisma.NestedEnumRoleFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedEnumRoleFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumRoleFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
in?: number[]
|
in?: number[];
|
||||||
notIn?: number[]
|
notIn?: number[];
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
||||||
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
||||||
in?: string[] | null
|
in?: string[] | null;
|
||||||
notIn?: string[] | null
|
notIn?: string[] | null;
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
not?:
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
| Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
| string
|
||||||
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
| null;
|
||||||
}
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
|
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
||||||
|
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
||||||
|
};
|
||||||
|
|
||||||
export type EnumCharacterClassNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type EnumCharacterClassNullableWithAggregatesFilter<
|
||||||
equals?: $Enums.CharacterClass | Prisma.EnumCharacterClassFieldRefInput<$PrismaModel> | null
|
$PrismaModel = never,
|
||||||
in?: $Enums.CharacterClass[] | null
|
> = {
|
||||||
notIn?: $Enums.CharacterClass[] | null
|
equals?:
|
||||||
not?: Prisma.NestedEnumCharacterClassNullableWithAggregatesFilter<$PrismaModel> | $Enums.CharacterClass | null
|
| $Enums.CharacterClass
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
| Prisma.EnumCharacterClassFieldRefInput<$PrismaModel>
|
||||||
_min?: Prisma.NestedEnumCharacterClassNullableFilter<$PrismaModel>
|
| null;
|
||||||
_max?: Prisma.NestedEnumCharacterClassNullableFilter<$PrismaModel>
|
in?: $Enums.CharacterClass[] | null;
|
||||||
}
|
notIn?: $Enums.CharacterClass[] | null;
|
||||||
|
not?:
|
||||||
|
| Prisma.NestedEnumCharacterClassNullableWithAggregatesFilter<$PrismaModel>
|
||||||
|
| $Enums.CharacterClass
|
||||||
|
| null;
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
|
_min?: Prisma.NestedEnumCharacterClassNullableFilter<$PrismaModel>;
|
||||||
|
_max?: Prisma.NestedEnumCharacterClassNullableFilter<$PrismaModel>;
|
||||||
|
};
|
||||||
|
|
||||||
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
in?: Date[] | string[]
|
in?: Date[] | string[];
|
||||||
notIn?: Date[] | string[]
|
notIn?: Date[] | string[];
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type EnumEventTypeFilter<$PrismaModel = never> = {
|
export type EnumEventTypeFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.EventType | Prisma.EnumEventTypeFieldRefInput<$PrismaModel>
|
equals?: $Enums.EventType | Prisma.EnumEventTypeFieldRefInput<$PrismaModel>;
|
||||||
in?: $Enums.EventType[]
|
in?: $Enums.EventType[];
|
||||||
notIn?: $Enums.EventType[]
|
notIn?: $Enums.EventType[];
|
||||||
not?: Prisma.NestedEnumEventTypeFilter<$PrismaModel> | $Enums.EventType
|
not?: Prisma.NestedEnumEventTypeFilter<$PrismaModel> | $Enums.EventType;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type IntNullableFilter<$PrismaModel = never> = {
|
export type IntNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
||||||
in?: number[] | null
|
in?: number[] | null;
|
||||||
notIn?: number[] | null
|
notIn?: number[] | null;
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type EnumEventTypeWithAggregatesFilter<$PrismaModel = never> = {
|
export type EnumEventTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.EventType | Prisma.EnumEventTypeFieldRefInput<$PrismaModel>
|
equals?: $Enums.EventType | Prisma.EnumEventTypeFieldRefInput<$PrismaModel>;
|
||||||
in?: $Enums.EventType[]
|
in?: $Enums.EventType[];
|
||||||
notIn?: $Enums.EventType[]
|
notIn?: $Enums.EventType[];
|
||||||
not?: Prisma.NestedEnumEventTypeWithAggregatesFilter<$PrismaModel> | $Enums.EventType
|
not?:
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
| Prisma.NestedEnumEventTypeWithAggregatesFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedEnumEventTypeFilter<$PrismaModel>
|
| $Enums.EventType;
|
||||||
_max?: Prisma.NestedEnumEventTypeFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
}
|
_min?: Prisma.NestedEnumEventTypeFilter<$PrismaModel>;
|
||||||
|
_max?: Prisma.NestedEnumEventTypeFilter<$PrismaModel>;
|
||||||
|
};
|
||||||
|
|
||||||
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
||||||
in?: number[] | null
|
in?: number[] | null;
|
||||||
notIn?: number[] | null
|
notIn?: number[] | null;
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
not?:
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
| Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel>
|
||||||
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
| number
|
||||||
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
| null;
|
||||||
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>;
|
||||||
}
|
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
|
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
|
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
|
};
|
||||||
|
|
||||||
export type NestedStringFilter<$PrismaModel = never> = {
|
export type NestedStringFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
in?: string[]
|
in?: string[];
|
||||||
notIn?: string[]
|
notIn?: string[];
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedEnumRoleFilter<$PrismaModel = never> = {
|
export type NestedEnumRoleFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.Role | Prisma.EnumRoleFieldRefInput<$PrismaModel>
|
equals?: $Enums.Role | Prisma.EnumRoleFieldRefInput<$PrismaModel>;
|
||||||
in?: $Enums.Role[]
|
in?: $Enums.Role[];
|
||||||
notIn?: $Enums.Role[]
|
notIn?: $Enums.Role[];
|
||||||
not?: Prisma.NestedEnumRoleFilter<$PrismaModel> | $Enums.Role
|
not?: Prisma.NestedEnumRoleFilter<$PrismaModel> | $Enums.Role;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedIntFilter<$PrismaModel = never> = {
|
export type NestedIntFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
in?: number[]
|
in?: number[];
|
||||||
notIn?: number[]
|
notIn?: number[];
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
||||||
in?: string[] | null
|
in?: string[] | null;
|
||||||
notIn?: string[] | null
|
notIn?: string[] | null;
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedEnumCharacterClassNullableFilter<$PrismaModel = never> = {
|
export type NestedEnumCharacterClassNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.CharacterClass | Prisma.EnumCharacterClassFieldRefInput<$PrismaModel> | null
|
equals?:
|
||||||
in?: $Enums.CharacterClass[] | null
|
| $Enums.CharacterClass
|
||||||
notIn?: $Enums.CharacterClass[] | null
|
| Prisma.EnumCharacterClassFieldRefInput<$PrismaModel>
|
||||||
not?: Prisma.NestedEnumCharacterClassNullableFilter<$PrismaModel> | $Enums.CharacterClass | null
|
| null;
|
||||||
}
|
in?: $Enums.CharacterClass[] | null;
|
||||||
|
notIn?: $Enums.CharacterClass[] | null;
|
||||||
|
not?:
|
||||||
|
| Prisma.NestedEnumCharacterClassNullableFilter<$PrismaModel>
|
||||||
|
| $Enums.CharacterClass
|
||||||
|
| null;
|
||||||
|
};
|
||||||
|
|
||||||
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
in?: Date[] | string[]
|
in?: Date[] | string[];
|
||||||
notIn?: Date[] | string[]
|
notIn?: Date[] | string[];
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
in?: string[]
|
in?: string[];
|
||||||
notIn?: string[]
|
notIn?: string[];
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedStringFilter<$PrismaModel>
|
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedEnumRoleWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedEnumRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.Role | Prisma.EnumRoleFieldRefInput<$PrismaModel>
|
equals?: $Enums.Role | Prisma.EnumRoleFieldRefInput<$PrismaModel>;
|
||||||
in?: $Enums.Role[]
|
in?: $Enums.Role[];
|
||||||
notIn?: $Enums.Role[]
|
notIn?: $Enums.Role[];
|
||||||
not?: Prisma.NestedEnumRoleWithAggregatesFilter<$PrismaModel> | $Enums.Role
|
not?: Prisma.NestedEnumRoleWithAggregatesFilter<$PrismaModel> | $Enums.Role;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedEnumRoleFilter<$PrismaModel>
|
_min?: Prisma.NestedEnumRoleFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedEnumRoleFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumRoleFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
in?: number[]
|
in?: number[];
|
||||||
notIn?: number[]
|
notIn?: number[];
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
||||||
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedFloatFilter<$PrismaModel = never> = {
|
export type NestedFloatFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
in?: number[]
|
in?: number[];
|
||||||
notIn?: number[]
|
notIn?: number[];
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
not?: Prisma.NestedFloatFilter<$PrismaModel> | number;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
||||||
in?: string[] | null
|
in?: string[] | null;
|
||||||
notIn?: string[] | null
|
notIn?: string[] | null;
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
not?:
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
| Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
| string
|
||||||
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
| null;
|
||||||
}
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
|
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
||||||
|
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
||||||
|
};
|
||||||
|
|
||||||
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
||||||
in?: number[] | null
|
in?: number[] | null;
|
||||||
notIn?: number[] | null
|
notIn?: number[] | null;
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedEnumCharacterClassNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedEnumCharacterClassNullableWithAggregatesFilter<
|
||||||
equals?: $Enums.CharacterClass | Prisma.EnumCharacterClassFieldRefInput<$PrismaModel> | null
|
$PrismaModel = never,
|
||||||
in?: $Enums.CharacterClass[] | null
|
> = {
|
||||||
notIn?: $Enums.CharacterClass[] | null
|
equals?:
|
||||||
not?: Prisma.NestedEnumCharacterClassNullableWithAggregatesFilter<$PrismaModel> | $Enums.CharacterClass | null
|
| $Enums.CharacterClass
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
| Prisma.EnumCharacterClassFieldRefInput<$PrismaModel>
|
||||||
_min?: Prisma.NestedEnumCharacterClassNullableFilter<$PrismaModel>
|
| null;
|
||||||
_max?: Prisma.NestedEnumCharacterClassNullableFilter<$PrismaModel>
|
in?: $Enums.CharacterClass[] | null;
|
||||||
}
|
notIn?: $Enums.CharacterClass[] | null;
|
||||||
|
not?:
|
||||||
|
| Prisma.NestedEnumCharacterClassNullableWithAggregatesFilter<$PrismaModel>
|
||||||
|
| $Enums.CharacterClass
|
||||||
|
| null;
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
|
_min?: Prisma.NestedEnumCharacterClassNullableFilter<$PrismaModel>;
|
||||||
|
_max?: Prisma.NestedEnumCharacterClassNullableFilter<$PrismaModel>;
|
||||||
|
};
|
||||||
|
|
||||||
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
in?: Date[] | string[]
|
in?: Date[] | string[];
|
||||||
notIn?: Date[] | string[]
|
notIn?: Date[] | string[];
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedEnumEventTypeFilter<$PrismaModel = never> = {
|
export type NestedEnumEventTypeFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.EventType | Prisma.EnumEventTypeFieldRefInput<$PrismaModel>
|
equals?: $Enums.EventType | Prisma.EnumEventTypeFieldRefInput<$PrismaModel>;
|
||||||
in?: $Enums.EventType[]
|
in?: $Enums.EventType[];
|
||||||
notIn?: $Enums.EventType[]
|
notIn?: $Enums.EventType[];
|
||||||
not?: Prisma.NestedEnumEventTypeFilter<$PrismaModel> | $Enums.EventType
|
not?: Prisma.NestedEnumEventTypeFilter<$PrismaModel> | $Enums.EventType;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type NestedEnumEventTypeWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedEnumEventTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.EventType | Prisma.EnumEventTypeFieldRefInput<$PrismaModel>
|
equals?: $Enums.EventType | Prisma.EnumEventTypeFieldRefInput<$PrismaModel>;
|
||||||
in?: $Enums.EventType[]
|
in?: $Enums.EventType[];
|
||||||
notIn?: $Enums.EventType[]
|
notIn?: $Enums.EventType[];
|
||||||
not?: Prisma.NestedEnumEventTypeWithAggregatesFilter<$PrismaModel> | $Enums.EventType
|
not?:
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
| Prisma.NestedEnumEventTypeWithAggregatesFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedEnumEventTypeFilter<$PrismaModel>
|
| $Enums.EventType;
|
||||||
_max?: Prisma.NestedEnumEventTypeFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
||||||
}
|
_min?: Prisma.NestedEnumEventTypeFilter<$PrismaModel>;
|
||||||
|
_max?: Prisma.NestedEnumEventTypeFilter<$PrismaModel>;
|
||||||
|
};
|
||||||
|
|
||||||
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
||||||
in?: number[] | null
|
in?: number[] | null;
|
||||||
notIn?: number[] | null
|
notIn?: number[] | null;
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
not?:
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
| Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel>
|
||||||
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
| number
|
||||||
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
| null;
|
||||||
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>;
|
||||||
}
|
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
|
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
|
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
||||||
|
};
|
||||||
|
|
||||||
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null;
|
||||||
in?: number[] | null
|
in?: number[] | null;
|
||||||
notIn?: number[] | null
|
notIn?: number[] | null;
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
||||||
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,43 +1,41 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
/*
|
/*
|
||||||
* This file exports all enum related types from the schema.
|
* This file exports all enum related types from the schema.
|
||||||
*
|
*
|
||||||
* 🟢 You can import this file directly.
|
* 🟢 You can import this file directly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const Role = {
|
export const Role = {
|
||||||
USER: 'USER',
|
USER: "USER",
|
||||||
ADMIN: 'ADMIN'
|
ADMIN: "ADMIN",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type Role = (typeof Role)[keyof typeof Role]
|
|
||||||
|
|
||||||
|
export type Role = (typeof Role)[keyof typeof Role];
|
||||||
|
|
||||||
export const EventType = {
|
export const EventType = {
|
||||||
ATELIER: 'ATELIER',
|
ATELIER: "ATELIER",
|
||||||
KATA: 'KATA',
|
KATA: "KATA",
|
||||||
PRESENTATION: 'PRESENTATION',
|
PRESENTATION: "PRESENTATION",
|
||||||
LEARNING_HOUR: 'LEARNING_HOUR'
|
LEARNING_HOUR: "LEARNING_HOUR",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type EventType = (typeof EventType)[keyof typeof EventType]
|
|
||||||
|
|
||||||
|
export type EventType = (typeof EventType)[keyof typeof EventType];
|
||||||
|
|
||||||
export const CharacterClass = {
|
export const CharacterClass = {
|
||||||
WARRIOR: 'WARRIOR',
|
WARRIOR: "WARRIOR",
|
||||||
MAGE: 'MAGE',
|
MAGE: "MAGE",
|
||||||
ROGUE: 'ROGUE',
|
ROGUE: "ROGUE",
|
||||||
RANGER: 'RANGER',
|
RANGER: "RANGER",
|
||||||
PALADIN: 'PALADIN',
|
PALADIN: "PALADIN",
|
||||||
ENGINEER: 'ENGINEER',
|
ENGINEER: "ENGINEER",
|
||||||
MERCHANT: 'MERCHANT',
|
MERCHANT: "MERCHANT",
|
||||||
SCHOLAR: 'SCHOLAR',
|
SCHOLAR: "SCHOLAR",
|
||||||
BERSERKER: 'BERSERKER',
|
BERSERKER: "BERSERKER",
|
||||||
NECROMANCER: 'NECROMANCER'
|
NECROMANCER: "NECROMANCER",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type CharacterClass = (typeof CharacterClass)[keyof typeof CharacterClass]
|
export type CharacterClass =
|
||||||
|
(typeof CharacterClass)[keyof typeof CharacterClass];
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
@@ -11,44 +10,52 @@
|
|||||||
* Please import the `PrismaClient` class from the `client.ts` file instead.
|
* Please import the `PrismaClient` class from the `client.ts` file instead.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as runtime from "@prisma/client/runtime/client"
|
import * as runtime from "@prisma/client/runtime/client";
|
||||||
import type * as Prisma from "./prismaNamespace"
|
import type * as Prisma from "./prismaNamespace";
|
||||||
|
|
||||||
|
|
||||||
const config: runtime.GetPrismaClientConfig = {
|
const config: runtime.GetPrismaClientConfig = {
|
||||||
"previewFeatures": [],
|
previewFeatures: [],
|
||||||
"clientVersion": "7.1.0",
|
clientVersion: "7.1.0",
|
||||||
"engineVersion": "ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba",
|
engineVersion: "ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba",
|
||||||
"activeProvider": "sqlite",
|
activeProvider: "sqlite",
|
||||||
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"./generated/prisma\"\n}\n\ndatasource db {\n provider = \"sqlite\"\n}\n\nenum Role {\n USER\n ADMIN\n}\n\nenum EventType {\n ATELIER\n KATA\n PRESENTATION\n LEARNING_HOUR\n}\n\nenum CharacterClass {\n WARRIOR\n MAGE\n ROGUE\n RANGER\n PALADIN\n ENGINEER\n MERCHANT\n SCHOLAR\n BERSERKER\n NECROMANCER\n}\n\nmodel User {\n id String @id @default(cuid())\n email String @unique\n password String\n username String @unique\n role Role @default(USER)\n score Int @default(0)\n level Int @default(1)\n hp Int @default(1000)\n maxHp Int @default(1000)\n xp Int @default(0)\n maxXp Int @default(5000)\n avatar String?\n bio String?\n characterClass CharacterClass?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n preferences UserPreferences?\n eventRegistrations EventRegistration[]\n eventFeedbacks EventFeedback[]\n\n @@index([score])\n @@index([email])\n}\n\nmodel UserPreferences {\n id String @id @default(cuid())\n userId String @unique\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n // Background images for each page\n homeBackground String?\n eventsBackground String?\n leaderboardBackground String?\n\n // Other UI preferences can be added here\n theme String? @default(\"default\")\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Event {\n id String @id @default(cuid())\n date DateTime\n name String\n description String\n type EventType\n room String?\n time String?\n maxPlaces Int?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n registrations EventRegistration[]\n feedbacks EventFeedback[]\n\n @@index([date])\n}\n\nmodel EventRegistration {\n id String @id @default(cuid())\n userId String\n eventId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)\n createdAt DateTime @default(now())\n\n @@unique([userId, eventId])\n @@index([userId])\n @@index([eventId])\n}\n\nmodel EventFeedback {\n id String @id @default(cuid())\n userId String\n eventId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)\n rating Int // Note de 1 à 5\n comment String? // Commentaire optionnel\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([userId, eventId])\n @@index([userId])\n @@index([eventId])\n}\n\nmodel SitePreferences {\n id String @id @default(\"global\")\n homeBackground String?\n eventsBackground String?\n leaderboardBackground String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n",
|
inlineSchema:
|
||||||
"runtimeDataModel": {
|
'// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = "prisma-client"\n output = "./generated/prisma"\n}\n\ndatasource db {\n provider = "sqlite"\n}\n\nenum Role {\n USER\n ADMIN\n}\n\nenum EventType {\n ATELIER\n KATA\n PRESENTATION\n LEARNING_HOUR\n}\n\nenum CharacterClass {\n WARRIOR\n MAGE\n ROGUE\n RANGER\n PALADIN\n ENGINEER\n MERCHANT\n SCHOLAR\n BERSERKER\n NECROMANCER\n}\n\nmodel User {\n id String @id @default(cuid())\n email String @unique\n password String\n username String @unique\n role Role @default(USER)\n score Int @default(0)\n level Int @default(1)\n hp Int @default(1000)\n maxHp Int @default(1000)\n xp Int @default(0)\n maxXp Int @default(5000)\n avatar String?\n bio String?\n characterClass CharacterClass?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n preferences UserPreferences?\n eventRegistrations EventRegistration[]\n eventFeedbacks EventFeedback[]\n\n @@index([score])\n @@index([email])\n}\n\nmodel UserPreferences {\n id String @id @default(cuid())\n userId String @unique\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n // Background images for each page\n homeBackground String?\n eventsBackground String?\n leaderboardBackground String?\n\n // Other UI preferences can be added here\n theme String? @default("default")\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Event {\n id String @id @default(cuid())\n date DateTime\n name String\n description String\n type EventType\n room String?\n time String?\n maxPlaces Int?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n registrations EventRegistration[]\n feedbacks EventFeedback[]\n\n @@index([date])\n}\n\nmodel EventRegistration {\n id String @id @default(cuid())\n userId String\n eventId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)\n createdAt DateTime @default(now())\n\n @@unique([userId, eventId])\n @@index([userId])\n @@index([eventId])\n}\n\nmodel EventFeedback {\n id String @id @default(cuid())\n userId String\n eventId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)\n rating Int // Note de 1 à 5\n comment String? // Commentaire optionnel\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([userId, eventId])\n @@index([userId])\n @@index([eventId])\n}\n\nmodel SitePreferences {\n id String @id @default("global")\n homeBackground String?\n eventsBackground String?\n leaderboardBackground String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n',
|
||||||
"models": {},
|
runtimeDataModel: {
|
||||||
"enums": {},
|
models: {},
|
||||||
"types": {}
|
enums: {},
|
||||||
}
|
types: {},
|
||||||
}
|
},
|
||||||
|
};
|
||||||
|
|
||||||
config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"role\",\"kind\":\"enum\",\"type\":\"Role\"},{\"name\":\"score\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"level\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"hp\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"maxHp\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"xp\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"maxXp\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"avatar\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"bio\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"characterClass\",\"kind\":\"enum\",\"type\":\"CharacterClass\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"preferences\",\"kind\":\"object\",\"type\":\"UserPreferences\",\"relationName\":\"UserToUserPreferences\"},{\"name\":\"eventRegistrations\",\"kind\":\"object\",\"type\":\"EventRegistration\",\"relationName\":\"EventRegistrationToUser\"},{\"name\":\"eventFeedbacks\",\"kind\":\"object\",\"type\":\"EventFeedback\",\"relationName\":\"EventFeedbackToUser\"}],\"dbName\":null},\"UserPreferences\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToUserPreferences\"},{\"name\":\"homeBackground\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"eventsBackground\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"leaderboardBackground\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"theme\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"Event\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"EventType\"},{\"name\":\"room\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"time\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"maxPlaces\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"registrations\",\"kind\":\"object\",\"type\":\"EventRegistration\",\"relationName\":\"EventToEventRegistration\"},{\"name\":\"feedbacks\",\"kind\":\"object\",\"type\":\"EventFeedback\",\"relationName\":\"EventToEventFeedback\"}],\"dbName\":null},\"EventRegistration\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"eventId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"EventRegistrationToUser\"},{\"name\":\"event\",\"kind\":\"object\",\"type\":\"Event\",\"relationName\":\"EventToEventRegistration\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"EventFeedback\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"eventId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"EventFeedbackToUser\"},{\"name\":\"event\",\"kind\":\"object\",\"type\":\"Event\",\"relationName\":\"EventToEventFeedback\"},{\"name\":\"rating\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"SitePreferences\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"homeBackground\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"eventsBackground\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"leaderboardBackground\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}")
|
config.runtimeDataModel = JSON.parse(
|
||||||
|
'{"models":{"User":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"email","kind":"scalar","type":"String"},{"name":"password","kind":"scalar","type":"String"},{"name":"username","kind":"scalar","type":"String"},{"name":"role","kind":"enum","type":"Role"},{"name":"score","kind":"scalar","type":"Int"},{"name":"level","kind":"scalar","type":"Int"},{"name":"hp","kind":"scalar","type":"Int"},{"name":"maxHp","kind":"scalar","type":"Int"},{"name":"xp","kind":"scalar","type":"Int"},{"name":"maxXp","kind":"scalar","type":"Int"},{"name":"avatar","kind":"scalar","type":"String"},{"name":"bio","kind":"scalar","type":"String"},{"name":"characterClass","kind":"enum","type":"CharacterClass"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"},{"name":"preferences","kind":"object","type":"UserPreferences","relationName":"UserToUserPreferences"},{"name":"eventRegistrations","kind":"object","type":"EventRegistration","relationName":"EventRegistrationToUser"},{"name":"eventFeedbacks","kind":"object","type":"EventFeedback","relationName":"EventFeedbackToUser"}],"dbName":null},"UserPreferences":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"userId","kind":"scalar","type":"String"},{"name":"user","kind":"object","type":"User","relationName":"UserToUserPreferences"},{"name":"homeBackground","kind":"scalar","type":"String"},{"name":"eventsBackground","kind":"scalar","type":"String"},{"name":"leaderboardBackground","kind":"scalar","type":"String"},{"name":"theme","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"}],"dbName":null},"Event":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"date","kind":"scalar","type":"DateTime"},{"name":"name","kind":"scalar","type":"String"},{"name":"description","kind":"scalar","type":"String"},{"name":"type","kind":"enum","type":"EventType"},{"name":"room","kind":"scalar","type":"String"},{"name":"time","kind":"scalar","type":"String"},{"name":"maxPlaces","kind":"scalar","type":"Int"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"},{"name":"registrations","kind":"object","type":"EventRegistration","relationName":"EventToEventRegistration"},{"name":"feedbacks","kind":"object","type":"EventFeedback","relationName":"EventToEventFeedback"}],"dbName":null},"EventRegistration":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"userId","kind":"scalar","type":"String"},{"name":"eventId","kind":"scalar","type":"String"},{"name":"user","kind":"object","type":"User","relationName":"EventRegistrationToUser"},{"name":"event","kind":"object","type":"Event","relationName":"EventToEventRegistration"},{"name":"createdAt","kind":"scalar","type":"DateTime"}],"dbName":null},"EventFeedback":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"userId","kind":"scalar","type":"String"},{"name":"eventId","kind":"scalar","type":"String"},{"name":"user","kind":"object","type":"User","relationName":"EventFeedbackToUser"},{"name":"event","kind":"object","type":"Event","relationName":"EventToEventFeedback"},{"name":"rating","kind":"scalar","type":"Int"},{"name":"comment","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"}],"dbName":null},"SitePreferences":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"homeBackground","kind":"scalar","type":"String"},{"name":"eventsBackground","kind":"scalar","type":"String"},{"name":"leaderboardBackground","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"}],"dbName":null}},"enums":{},"types":{}}'
|
||||||
|
);
|
||||||
|
|
||||||
async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
|
async function decodeBase64AsWasm(
|
||||||
const { Buffer } = await import('node:buffer')
|
wasmBase64: string
|
||||||
const wasmArray = Buffer.from(wasmBase64, 'base64')
|
): Promise<WebAssembly.Module> {
|
||||||
return new WebAssembly.Module(wasmArray)
|
const { Buffer } = await import("node:buffer");
|
||||||
|
const wasmArray = Buffer.from(wasmBase64, "base64");
|
||||||
|
return new WebAssembly.Module(wasmArray);
|
||||||
}
|
}
|
||||||
|
|
||||||
config.compilerWasm = {
|
config.compilerWasm = {
|
||||||
getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.sqlite.mjs"),
|
getRuntime: async () =>
|
||||||
|
await import("@prisma/client/runtime/query_compiler_bg.sqlite.mjs"),
|
||||||
|
|
||||||
getQueryCompilerWasmModule: async () => {
|
getQueryCompilerWasmModule: async () => {
|
||||||
const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.sqlite.wasm-base64.mjs")
|
const { wasm } =
|
||||||
return await decodeBase64AsWasm(wasm)
|
await import("@prisma/client/runtime/query_compiler_bg.sqlite.wasm-base64.mjs");
|
||||||
}
|
return await decodeBase64AsWasm(wasm);
|
||||||
}
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> =
|
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> =
|
||||||
'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never
|
"log" extends keyof ClientOptions
|
||||||
|
? ClientOptions["log"] extends Array<Prisma.LogLevel | Prisma.LogDefinition>
|
||||||
|
? Prisma.GetEvents<ClientOptions["log"]>
|
||||||
|
: never
|
||||||
|
: never;
|
||||||
|
|
||||||
export interface PrismaClientConstructor {
|
export interface PrismaClientConstructor {
|
||||||
/**
|
/**
|
||||||
@@ -68,9 +75,16 @@ export interface PrismaClientConstructor {
|
|||||||
new <
|
new <
|
||||||
Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
||||||
LogOpts extends LogOptions<Options> = LogOptions<Options>,
|
LogOpts extends LogOptions<Options> = LogOptions<Options>,
|
||||||
OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'],
|
OmitOpts extends Prisma.PrismaClientOptions["omit"] = Options extends {
|
||||||
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
omit: infer U;
|
||||||
>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions> ): PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
}
|
||||||
|
? U
|
||||||
|
: Prisma.PrismaClientOptions["omit"],
|
||||||
|
ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||||
|
runtime.Types.Extensions.DefaultArgs,
|
||||||
|
>(
|
||||||
|
options: Prisma.Subset<Options, Prisma.PrismaClientOptions>
|
||||||
|
): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -89,12 +103,18 @@ export interface PrismaClientConstructor {
|
|||||||
|
|
||||||
export interface PrismaClient<
|
export interface PrismaClient<
|
||||||
in LogOpts extends Prisma.LogLevel = never,
|
in LogOpts extends Prisma.LogLevel = never,
|
||||||
in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined,
|
in out OmitOpts extends Prisma.PrismaClientOptions["omit"] = undefined,
|
||||||
in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
in out ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||||
|
runtime.Types.Extensions.DefaultArgs,
|
||||||
> {
|
> {
|
||||||
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>["other"] };
|
||||||
|
|
||||||
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
$on<V extends LogOpts>(
|
||||||
|
eventType: V,
|
||||||
|
callback: (
|
||||||
|
event: V extends "query" ? Prisma.QueryEvent : Prisma.LogEvent
|
||||||
|
) => void
|
||||||
|
): PrismaClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Connect with the database
|
* Connect with the database
|
||||||
@@ -106,7 +126,7 @@ export interface PrismaClient<
|
|||||||
*/
|
*/
|
||||||
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes a prepared raw query and returns the number of affected rows.
|
* Executes a prepared raw query and returns the number of affected rows.
|
||||||
* @example
|
* @example
|
||||||
* ```
|
* ```
|
||||||
@@ -115,7 +135,10 @@ export interface PrismaClient<
|
|||||||
*
|
*
|
||||||
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
||||||
*/
|
*/
|
||||||
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
$executeRaw<T = unknown>(
|
||||||
|
query: TemplateStringsArray | Prisma.Sql,
|
||||||
|
...values: any[]
|
||||||
|
): Prisma.PrismaPromise<number>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes a raw query and returns the number of affected rows.
|
* Executes a raw query and returns the number of affected rows.
|
||||||
@@ -127,7 +150,10 @@ export interface PrismaClient<
|
|||||||
*
|
*
|
||||||
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
||||||
*/
|
*/
|
||||||
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
$executeRawUnsafe<T = unknown>(
|
||||||
|
query: string,
|
||||||
|
...values: any[]
|
||||||
|
): Prisma.PrismaPromise<number>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs a prepared raw query and returns the `SELECT` data.
|
* Performs a prepared raw query and returns the `SELECT` data.
|
||||||
@@ -138,7 +164,10 @@ export interface PrismaClient<
|
|||||||
*
|
*
|
||||||
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
||||||
*/
|
*/
|
||||||
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
$queryRaw<T = unknown>(
|
||||||
|
query: TemplateStringsArray | Prisma.Sql,
|
||||||
|
...values: any[]
|
||||||
|
): Prisma.PrismaPromise<T>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs a raw query and returns the `SELECT` data.
|
* Performs a raw query and returns the `SELECT` data.
|
||||||
@@ -150,8 +179,10 @@ export interface PrismaClient<
|
|||||||
*
|
*
|
||||||
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
||||||
*/
|
*/
|
||||||
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
$queryRawUnsafe<T = unknown>(
|
||||||
|
query: string,
|
||||||
|
...values: any[]
|
||||||
|
): Prisma.PrismaPromise<T>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
||||||
@@ -166,13 +197,33 @@ export interface PrismaClient<
|
|||||||
*
|
*
|
||||||
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
|
||||||
*/
|
*/
|
||||||
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
|
$transaction<P extends Prisma.PrismaPromise<any>[]>(
|
||||||
|
arg: [...P],
|
||||||
|
options?: { isolationLevel?: Prisma.TransactionIsolationLevel }
|
||||||
|
): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
|
||||||
|
|
||||||
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise<R>
|
$transaction<R>(
|
||||||
|
fn: (
|
||||||
|
prisma: Omit<PrismaClient, runtime.ITXClientDenyList>
|
||||||
|
) => runtime.Types.Utils.JsPromise<R>,
|
||||||
|
options?: {
|
||||||
|
maxWait?: number;
|
||||||
|
timeout?: number;
|
||||||
|
isolationLevel?: Prisma.TransactionIsolationLevel;
|
||||||
|
}
|
||||||
|
): runtime.Types.Utils.JsPromise<R>;
|
||||||
|
|
||||||
$extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
|
$extends: runtime.Types.Extensions.ExtendsHook<
|
||||||
extArgs: ExtArgs
|
"extends",
|
||||||
}>>
|
Prisma.TypeMapCb<OmitOpts>,
|
||||||
|
ExtArgs,
|
||||||
|
runtime.Types.Utils.Call<
|
||||||
|
Prisma.TypeMapCb<OmitOpts>,
|
||||||
|
{
|
||||||
|
extArgs: ExtArgs;
|
||||||
|
}
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
||||||
@@ -192,7 +243,10 @@ export interface PrismaClient<
|
|||||||
* const userPreferences = await prisma.userPreferences.findMany()
|
* const userPreferences = await prisma.userPreferences.findMany()
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
get userPreferences(): Prisma.UserPreferencesDelegate<ExtArgs, { omit: OmitOpts }>;
|
get userPreferences(): Prisma.UserPreferencesDelegate<
|
||||||
|
ExtArgs,
|
||||||
|
{ omit: OmitOpts }
|
||||||
|
>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* `prisma.event`: Exposes CRUD operations for the **Event** model.
|
* `prisma.event`: Exposes CRUD operations for the **Event** model.
|
||||||
@@ -212,7 +266,10 @@ export interface PrismaClient<
|
|||||||
* const eventRegistrations = await prisma.eventRegistration.findMany()
|
* const eventRegistrations = await prisma.eventRegistration.findMany()
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
get eventRegistration(): Prisma.EventRegistrationDelegate<ExtArgs, { omit: OmitOpts }>;
|
get eventRegistration(): Prisma.EventRegistrationDelegate<
|
||||||
|
ExtArgs,
|
||||||
|
{ omit: OmitOpts }
|
||||||
|
>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* `prisma.eventFeedback`: Exposes CRUD operations for the **EventFeedback** model.
|
* `prisma.eventFeedback`: Exposes CRUD operations for the **EventFeedback** model.
|
||||||
@@ -222,7 +279,10 @@ export interface PrismaClient<
|
|||||||
* const eventFeedbacks = await prisma.eventFeedback.findMany()
|
* const eventFeedbacks = await prisma.eventFeedback.findMany()
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
get eventFeedback(): Prisma.EventFeedbackDelegate<ExtArgs, { omit: OmitOpts }>;
|
get eventFeedback(): Prisma.EventFeedbackDelegate<
|
||||||
|
ExtArgs,
|
||||||
|
{ omit: OmitOpts }
|
||||||
|
>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* `prisma.sitePreferences`: Exposes CRUD operations for the **SitePreferences** model.
|
* `prisma.sitePreferences`: Exposes CRUD operations for the **SitePreferences** model.
|
||||||
@@ -232,9 +292,12 @@ export interface PrismaClient<
|
|||||||
* const sitePreferences = await prisma.sitePreferences.findMany()
|
* const sitePreferences = await prisma.sitePreferences.findMany()
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
get sitePreferences(): Prisma.SitePreferencesDelegate<ExtArgs, { omit: OmitOpts }>;
|
get sitePreferences(): Prisma.SitePreferencesDelegate<
|
||||||
|
ExtArgs,
|
||||||
|
{ omit: OmitOpts }
|
||||||
|
>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getPrismaClientClass(): PrismaClientConstructor {
|
export function getPrismaClientClass(): PrismaClientConstructor {
|
||||||
return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor
|
return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor;
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
@@ -15,162 +14,164 @@
|
|||||||
* model files in the `model` directory!
|
* model files in the `model` directory!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as runtime from "@prisma/client/runtime/index-browser"
|
import * as runtime from "@prisma/client/runtime/index-browser";
|
||||||
|
|
||||||
export type * from '../models'
|
export type * from "../models";
|
||||||
export type * from './prismaNamespace'
|
export type * from "./prismaNamespace";
|
||||||
|
|
||||||
export const Decimal = runtime.Decimal
|
|
||||||
|
|
||||||
|
export const Decimal = runtime.Decimal;
|
||||||
|
|
||||||
export const NullTypes = {
|
export const NullTypes = {
|
||||||
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
DbNull: runtime.NullTypes.DbNull as new (
|
||||||
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
secret: never
|
||||||
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
) => 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)
|
* 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
|
* @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
|
export const DbNull = runtime.DbNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
* 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
|
* @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
|
export const JsonNull = runtime.JsonNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.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
|
* @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 AnyNull = runtime.AnyNull;
|
||||||
|
|
||||||
|
|
||||||
export const ModelName = {
|
export const ModelName = {
|
||||||
User: 'User',
|
User: "User",
|
||||||
UserPreferences: 'UserPreferences',
|
UserPreferences: "UserPreferences",
|
||||||
Event: 'Event',
|
Event: "Event",
|
||||||
EventRegistration: 'EventRegistration',
|
EventRegistration: "EventRegistration",
|
||||||
EventFeedback: 'EventFeedback',
|
EventFeedback: "EventFeedback",
|
||||||
SitePreferences: 'SitePreferences'
|
SitePreferences: "SitePreferences",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Enums
|
* Enums
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const TransactionIsolationLevel = {
|
export const TransactionIsolationLevel = {
|
||||||
Serializable: 'Serializable'
|
Serializable: "Serializable",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
||||||
|
|
||||||
|
export type TransactionIsolationLevel =
|
||||||
|
(typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
|
||||||
|
|
||||||
export const UserScalarFieldEnum = {
|
export const UserScalarFieldEnum = {
|
||||||
id: 'id',
|
id: "id",
|
||||||
email: 'email',
|
email: "email",
|
||||||
password: 'password',
|
password: "password",
|
||||||
username: 'username',
|
username: "username",
|
||||||
role: 'role',
|
role: "role",
|
||||||
score: 'score',
|
score: "score",
|
||||||
level: 'level',
|
level: "level",
|
||||||
hp: 'hp',
|
hp: "hp",
|
||||||
maxHp: 'maxHp',
|
maxHp: "maxHp",
|
||||||
xp: 'xp',
|
xp: "xp",
|
||||||
maxXp: 'maxXp',
|
maxXp: "maxXp",
|
||||||
avatar: 'avatar',
|
avatar: "avatar",
|
||||||
bio: 'bio',
|
bio: "bio",
|
||||||
characterClass: 'characterClass',
|
characterClass: "characterClass",
|
||||||
createdAt: 'createdAt',
|
createdAt: "createdAt",
|
||||||
updatedAt: 'updatedAt'
|
updatedAt: "updatedAt",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type UserScalarFieldEnum =
|
||||||
|
(typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum];
|
||||||
|
|
||||||
export const UserPreferencesScalarFieldEnum = {
|
export const UserPreferencesScalarFieldEnum = {
|
||||||
id: 'id',
|
id: "id",
|
||||||
userId: 'userId',
|
userId: "userId",
|
||||||
homeBackground: 'homeBackground',
|
homeBackground: "homeBackground",
|
||||||
eventsBackground: 'eventsBackground',
|
eventsBackground: "eventsBackground",
|
||||||
leaderboardBackground: 'leaderboardBackground',
|
leaderboardBackground: "leaderboardBackground",
|
||||||
theme: 'theme',
|
theme: "theme",
|
||||||
createdAt: 'createdAt',
|
createdAt: "createdAt",
|
||||||
updatedAt: 'updatedAt'
|
updatedAt: "updatedAt",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type UserPreferencesScalarFieldEnum = (typeof UserPreferencesScalarFieldEnum)[keyof typeof UserPreferencesScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type UserPreferencesScalarFieldEnum =
|
||||||
|
(typeof UserPreferencesScalarFieldEnum)[keyof typeof UserPreferencesScalarFieldEnum];
|
||||||
|
|
||||||
export const EventScalarFieldEnum = {
|
export const EventScalarFieldEnum = {
|
||||||
id: 'id',
|
id: "id",
|
||||||
date: 'date',
|
date: "date",
|
||||||
name: 'name',
|
name: "name",
|
||||||
description: 'description',
|
description: "description",
|
||||||
type: 'type',
|
type: "type",
|
||||||
room: 'room',
|
room: "room",
|
||||||
time: 'time',
|
time: "time",
|
||||||
maxPlaces: 'maxPlaces',
|
maxPlaces: "maxPlaces",
|
||||||
createdAt: 'createdAt',
|
createdAt: "createdAt",
|
||||||
updatedAt: 'updatedAt'
|
updatedAt: "updatedAt",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type EventScalarFieldEnum = (typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type EventScalarFieldEnum =
|
||||||
|
(typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum];
|
||||||
|
|
||||||
export const EventRegistrationScalarFieldEnum = {
|
export const EventRegistrationScalarFieldEnum = {
|
||||||
id: 'id',
|
id: "id",
|
||||||
userId: 'userId',
|
userId: "userId",
|
||||||
eventId: 'eventId',
|
eventId: "eventId",
|
||||||
createdAt: 'createdAt'
|
createdAt: "createdAt",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type EventRegistrationScalarFieldEnum = (typeof EventRegistrationScalarFieldEnum)[keyof typeof EventRegistrationScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type EventRegistrationScalarFieldEnum =
|
||||||
|
(typeof EventRegistrationScalarFieldEnum)[keyof typeof EventRegistrationScalarFieldEnum];
|
||||||
|
|
||||||
export const EventFeedbackScalarFieldEnum = {
|
export const EventFeedbackScalarFieldEnum = {
|
||||||
id: 'id',
|
id: "id",
|
||||||
userId: 'userId',
|
userId: "userId",
|
||||||
eventId: 'eventId',
|
eventId: "eventId",
|
||||||
rating: 'rating',
|
rating: "rating",
|
||||||
comment: 'comment',
|
comment: "comment",
|
||||||
createdAt: 'createdAt',
|
createdAt: "createdAt",
|
||||||
updatedAt: 'updatedAt'
|
updatedAt: "updatedAt",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type EventFeedbackScalarFieldEnum = (typeof EventFeedbackScalarFieldEnum)[keyof typeof EventFeedbackScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type EventFeedbackScalarFieldEnum =
|
||||||
|
(typeof EventFeedbackScalarFieldEnum)[keyof typeof EventFeedbackScalarFieldEnum];
|
||||||
|
|
||||||
export const SitePreferencesScalarFieldEnum = {
|
export const SitePreferencesScalarFieldEnum = {
|
||||||
id: 'id',
|
id: "id",
|
||||||
homeBackground: 'homeBackground',
|
homeBackground: "homeBackground",
|
||||||
eventsBackground: 'eventsBackground',
|
eventsBackground: "eventsBackground",
|
||||||
leaderboardBackground: 'leaderboardBackground',
|
leaderboardBackground: "leaderboardBackground",
|
||||||
createdAt: 'createdAt',
|
createdAt: "createdAt",
|
||||||
updatedAt: 'updatedAt'
|
updatedAt: "updatedAt",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type SitePreferencesScalarFieldEnum = (typeof SitePreferencesScalarFieldEnum)[keyof typeof SitePreferencesScalarFieldEnum]
|
|
||||||
|
|
||||||
|
export type SitePreferencesScalarFieldEnum =
|
||||||
|
(typeof SitePreferencesScalarFieldEnum)[keyof typeof SitePreferencesScalarFieldEnum];
|
||||||
|
|
||||||
export const SortOrder = {
|
export const SortOrder = {
|
||||||
asc: 'asc',
|
asc: "asc",
|
||||||
desc: 'desc'
|
desc: "desc",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
||||||
|
|
||||||
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
||||||
|
|
||||||
export const NullsOrder = {
|
export const NullsOrder = {
|
||||||
first: 'first',
|
first: "first",
|
||||||
last: 'last'
|
last: "last",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
||||||
|
|
||||||
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder];
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// biome-ignore-all lint: generated file
|
// biome-ignore-all lint: generated file
|
||||||
@@ -8,10 +7,10 @@
|
|||||||
*
|
*
|
||||||
* 🟢 You can import this file directly.
|
* 🟢 You can import this file directly.
|
||||||
*/
|
*/
|
||||||
export type * from './models/User'
|
export type * from "./models/User";
|
||||||
export type * from './models/UserPreferences'
|
export type * from "./models/UserPreferences";
|
||||||
export type * from './models/Event'
|
export type * from "./models/Event";
|
||||||
export type * from './models/EventRegistration'
|
export type * from "./models/EventRegistration";
|
||||||
export type * from './models/EventFeedback'
|
export type * from "./models/EventFeedback";
|
||||||
export type * from './models/SitePreferences'
|
export type * from "./models/SitePreferences";
|
||||||
export type * from './commonInputTypes'
|
export type * from "./commonInputTypes";
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -9,21 +9,20 @@ const config: Config = {
|
|||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
colors: {
|
colors: {
|
||||||
'pixel-purple': '#0a0515',
|
"pixel-purple": "#0a0515",
|
||||||
'pixel-dark': '#000000',
|
"pixel-dark": "#000000",
|
||||||
'pixel-red': '#8b0000',
|
"pixel-red": "#8b0000",
|
||||||
'pixel-gold': '#daa520',
|
"pixel-gold": "#daa520",
|
||||||
'pixel-brown': '#3d2817',
|
"pixel-brown": "#3d2817",
|
||||||
'pixel-dark-purple': '#1a0d2e',
|
"pixel-dark-purple": "#1a0d2e",
|
||||||
},
|
},
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
'pixel': ['Courier New', 'monospace'],
|
pixel: ["Courier New", "monospace"],
|
||||||
'gaming': ['var(--font-orbitron)', 'sans-serif'],
|
gaming: ["var(--font-orbitron)", "sans-serif"],
|
||||||
'gaming-subtitle': ['var(--font-rajdhani)', 'sans-serif'],
|
"gaming-subtitle": ["var(--font-rajdhani)", "sans-serif"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [],
|
plugins: [],
|
||||||
};
|
};
|
||||||
export default config;
|
export default config;
|
||||||
|
|
||||||
|
|||||||
@@ -25,4 +25,3 @@
|
|||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user