20 Commits

Author SHA1 Message Date
djalim f162fcaadc feat: add role_write permission and update e2e tests
Check Deno code / Check Deno code (pull_request) Failing after 5s
Tests / Unit tests (pull_request) Successful in 13s
Tests / Integration tests (pull_request) Successful in 1m12s
Add role_write permission to permissions table and update migrations.
Update e2e tests to use DB integration and seed permissions.
Add seedPermissions helper.
2026-04-27 18:56:04 +02:00
djalim d3de5c29e7 refactor: add migration, seed permissions, update permissions API
feat(notes): add XLSX import island and admin route

feat(upload): add drag‑and‑drop upload, template download, UI tweaks
2026-04-27 17:08:58 +02:00
djalim 56019ad372 fix: fixed test ci 2026-04-27 00:04:28 +02:00
djalim 6db04045f4 fix(lint): add version to drizzle-orm imports and prefix unused NOT_FOUND 2026-04-26 11:30:33 +00:00
djalim cdd9c0bf06 chore(test): set up integration test framework with postgres
- Generate Drizzle migrations (databases/migrations/)
- Add databases/schema.kit.ts for drizzle-kit (Node-compatible imports)
- Update drizzle.config.ts to use schema.kit.ts
- Add deno tasks: test:unit, test:integration, migrate
- Add tests/helpers/db_integration.ts: testDb, truncateAll, seed helpers
- Add .gitea/workflows/test.yml: CI with postgres service container
- Update lint.yml: run test:unit only (no DB needed)
- Update deploy.yml: add check-code job, gate deploy on it
2026-04-26 11:30:33 +00:00
djalim 6c18189d9f chore(deps): update drizzle-orm to 0.45.2 and pg to 8.20.0 2026-04-22 14:40:19 +02:00
djalim b8d359a507 feat(database): add roles, permissions, users, modules, and related tables
Add tables for role-based access control and academic entities.
Includes modules, UEs, notes, and adjustments.
Update students and mobility tables to reference new primary keys.
This enables richer data modeling for the application.
2026-04-22 13:17:08 +02:00
Clément Oudelet 32ffbb7cda PMPR-32 : GET /ues - liste toutes les UEs 2026-04-22 12:50:46 +02:00
djalim 33b8c178f2 feat(db): add PostgreSQL connection and schema definitions 2026-04-03 10:41:11 +02:00
Kevin FEDYNA e88045c952 Refactored students 2025-01-27 13:11:13 +01:00
Kevin FEDYNA 1f3a723dbe Merge branch 'main' into PMPR-27 2025-01-25 10:48:41 +01:00
Clayzxr 4abf540558 Init mobility DB 2025-01-22 15:09:22 +01:00
Kevin FEDYNA 6456529b7f Added documentation for connect file 2025-01-22 14:48:00 +01:00
Kevin FEDYNA 75a9591f6a Added documentation on cli 2025-01-22 14:24:55 +01:00
Clayzxr d767cb0898 Minor fix for DB (working) 2025-01-22 11:00:18 +01:00
Kevin FEDYNA 3ce1273455 Started documenting code 2025-01-22 00:54:43 +01:00
Kevin FEDYNA 5e75c688c8 Added layer of abstraction for database connection 2025-01-21 23:49:52 +01:00
Kevin FEDYNA fa66621abc Fixed partial handling and added cookies 2025-01-21 16:09:36 +01:00
fedyna-k 282f618386 Patched DB creation and added CLI toolchain base 2025-01-20 08:31:12 +01:00
fedyna-k 46a417f411 Added auto database creation based on sql scripts and jwt key cache 2025-01-16 23:13:58 +01:00