Commit Graph

12 Commits

Author SHA1 Message Date
julien ed0cd81bde chore(db): remove unused mysql models barrel
models/mysql/index.js was never imported by the application — mysql.js
is the actual model registry. The barrel created a false registration
point that caused the Application migration bug.
2026-04-26 21:55:22 +02:00
julien b3a31e4725 feat(auth): migrate Application model from MongoDB to MySQL
- Add Sequelize migration creating the 'application' table
- Add Application Sequelize model with slugify, toJSONFor, toAuthJSON
- Rewrite passport-headerapikey strategy to use DB.Application
- Rewrite applications.routes.js to use Sequelize (findAll, count,
  build/save, destroy) instead of Mongoose
- Fix pre-existing bug: passport was querying { encryptedKey } but the
  stored field is named 'apikey'
- Add Application to MySQL models index and relationships
- Remove Application from Mongoose models index and delete the schema
2026-04-26 18:26:58 +02:00
julien ad7fc4384a feat(skydiver-profile): add SkydiverProfile MySQL model and service
Introduces the skydiver_profile table as an optional 1-to-1 extension
of the user table, holding skydive-specific fields (licence, poids,
bg_image). Wired up with Sequelize associations and a service with
upsert support. Migration, model, relationships, and service layer
all included.
2026-04-25 22:32:30 +02:00
julien 7dd2a077e5 chore(models): remove unused Product-tmp.js
Leftover scratch file, not registered in src/database/mysql.js and
not referenced anywhere in src/ or scripts/.
2026-04-25 17:22:08 +02:00
julien b710b34569 fix(user): persist updateUser correctly; add setup:api script and README update; seeders tweaks 2025-12-05 01:33:38 +01:00
julien 9355431730 Mise à jour et ajout de controllers, routes, services et utilities 2025-11-30 17:54:01 +01:00
Rampeur 6510c55458 Ajout et mise à jour de models mysql 2025-08-29 16:08:53 +02:00
Rampeur b1513dccdd Mise à jour de controleurs, models et routes 2025-08-19 05:13:24 +02:00
Rampeur 25a09aa0fe Refactoring 2025-08-15 20:21:03 +02:00
Rampeur 5d361da628 Réorganisation des sources 2025-08-15 19:39:35 +02:00
Rampeur ea2d177c4c Réorganisation des sources 2025-08-15 17:29:23 +02:00
Rampeur bd3d1ade49 Mise à jour des models mysql 2025-08-15 15:54:13 +02:00