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
@@ -1094,6 +1094,7 @@ export type DailyPuzzleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.I
* The data used to create many DailyPuzzles.
*/
data: Prisma.DailyPuzzleCreateManyInput | Prisma.DailyPuzzleCreateManyInput[]
skipDuplicates?: boolean
}
/**
@@ -1112,6 +1113,7 @@ export type DailyPuzzleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Ext
* The data used to create many DailyPuzzles.
*/
data: Prisma.DailyPuzzleCreateManyInput | Prisma.DailyPuzzleCreateManyInput[]
skipDuplicates?: boolean
}
/**
@@ -552,6 +552,7 @@ export type DailyResultCreateOrConnectWithoutUserInput = {
export type DailyResultCreateManyUserInputEnvelope = {
data: Prisma.DailyResultCreateManyUserInput | Prisma.DailyResultCreateManyUserInput[]
skipDuplicates?: boolean
}
export type DailyResultUpsertWithWhereUniqueWithoutUserInput = {
@@ -611,6 +612,7 @@ export type DailyResultCreateOrConnectWithoutPuzzleInput = {
export type DailyResultCreateManyPuzzleInputEnvelope = {
data: Prisma.DailyResultCreateManyPuzzleInput | Prisma.DailyResultCreateManyPuzzleInput[]
skipDuplicates?: boolean
}
export type DailyResultUpsertWithWhereUniqueWithoutPuzzleInput = {
@@ -1457,6 +1459,7 @@ export type DailyResultCreateManyArgs<ExtArgs extends runtime.Types.Extensions.I
* The data used to create many DailyResults.
*/
data: Prisma.DailyResultCreateManyInput | Prisma.DailyResultCreateManyInput[]
skipDuplicates?: boolean
}
/**
@@ -1475,6 +1478,7 @@ export type DailyResultCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Ext
* The data used to create many DailyResults.
*/
data: Prisma.DailyResultCreateManyInput | Prisma.DailyResultCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
+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
*/
+2
View File
@@ -1264,6 +1264,7 @@ export type UserCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
* The data used to create many Users.
*/
data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
skipDuplicates?: boolean
}
/**
@@ -1282,6 +1283,7 @@ export type UserCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions
* The data used to create many Users.
*/
data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
skipDuplicates?: boolean
}
/**