Commit Graph

10 Commits

Author SHA1 Message Date
djalim 0d45bd4c1c refactor(students): simplify API, remove unused imports and helpers
refactor(students): add query param filtering, enforce employee role for POST
refactor(students): return created student in POST response
2026-04-22 14:06:01 +02:00
djalim 9636242b42 refactor(mobility): switch to Drizzle ORM and remove raw SQLite usage
- replace Database with db instance
- use schema imports for tables
- use db.select, db.insert, onConflictDoUpdate
- remove manual connection handling and console logs
- improve type safety and maintainability

refactor(students): migrate to Drizzle ORM and async queries

Replace raw sqlite queries with Drizzle ORM. Remove the connect helper and use the
shared db instance and schema definitions. Convert getItself, getAll and
addStudents to async functions, use eq and lt helpers, and simplify promotion
handling. This improves type safety, maintainability, and allows non‑blocking
database access.
2026-04-03 10:43:29 +02:00
Kevin FEDYNA 4c54283bfd Finalized students app 2025-01-28 10:03:20 +01:00
Kevin FEDYNA e88045c952 Refactored students 2025-01-27 13:11:13 +01:00
Kevin FEDYNA 6d4d36e089 Fixed linting and formatting errors 2025-01-25 10:48:04 +01:00
Clayzxr fcc0a4413c Update student to have an ID 2025-01-24 20:48:33 +01:00
Clayzxr d767cb0898 Minor fix for DB (working) 2025-01-22 11:00:18 +01:00
Kevin FEDYNA 5e75c688c8 Added layer of abstraction for database connection 2025-01-21 23:49:52 +01:00
Clayzxr b5fedbb425 Moved all student management tools into student app for global uses (working) 2025-01-21 17:29:59 +01:00
Kevin FEDYNA fa66621abc Fixed partial handling and added cookies 2025-01-21 16:09:36 +01:00