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
@@ -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
*/