Skip to content

Migrate database queries to Prisma - #9

Merged
theNEXlevel merged 2 commits into
mainfrom
feature/switch-db-queries-to-prisma
Sep 17, 2026
Merged

theNEXlevel merged 2 commits into
mainfrom
feature/switch-db-queries-to-prisma

Conversation

@theNEXlevel

Copy link
Copy Markdown
Contributor

Summary

  • replace application database access through lib/db.ts with the shared Prisma client
  • migrate API, auth, configuration, student, batch, report, attendance, assignment, fee, user, and remarks queries
  • remove the obsolete MySQL query helper and mysql2 runtime dependency
  • add typed raw-query exceptions only where legacy joins/report SQL or invalid legacy enum data require them
  • normalize BigInt values at API response boundaries and validate numeric request IDs

Validation

  • pnpm type-check
  • pnpm exec jest --runInBand
  • pnpm exec next lint (existing Navbar <img> warning only)
  • Prisma validation/generation
  • live API smoke checks for student data and document/fee endpoints
  • OpenSpec validation passed

@theNEXlevel
theNEXlevel merged commit 79fd353 into main Sep 17, 2026
1 check passed
@theNEXlevel
theNEXlevel deleted the feature/switch-db-queries-to-prisma branch September 17, 2026 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant