chore(db): migrate from SQLite to PostgreSQL

- Change Prisma provider from sqlite to postgresql
- Replace better-sqlite3 adapter with @prisma/adapter-pg
- Update prisma.config.ts and lib/prisma.ts for PostgreSQL
- Add DATABASE_URL to .env.local
- Regenerate Prisma client for PostgreSQL
- Recreate migrations for PostgreSQL database
This commit is contained in:
jessy-david-dev
2026-04-11 15:50:44 +02:00
parent 5cd32c37e0
commit 875a299cd4
17 changed files with 372 additions and 149 deletions
+3
View File
@@ -566,6 +566,7 @@ export type GameCreateOrConnectWithoutUserInput = {
export type GameCreateManyUserInputEnvelope = {
data: Prisma.GameCreateManyUserInput | Prisma.GameCreateManyUserInput[]
skipDuplicates?: boolean
}
export type GameUpsertWithWhereUniqueWithoutUserInput = {
@@ -1400,6 +1401,7 @@ export type GameCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
* The data used to create many Games.
*/
data: Prisma.GameCreateManyInput | Prisma.GameCreateManyInput[]
skipDuplicates?: boolean
}
/**
@@ -1418,6 +1420,7 @@ export type GameCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions
* The data used to create many Games.
*/
data: Prisma.GameCreateManyInput | Prisma.GameCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/