gohorsejobs/seeder-api/src/seeders
Tiago Yamamoto aab2de7534 fix(seeder): add SSL support and fix foreign key violations
- Add SSL configuration to database pool supporting DB_SSLMODE=require
- Fix user seeder FK violations by using RETURNING clause to get actual IDs
- Update all user creation queries (superadmin, company admins, candidates)
- Ensure correct user_id references when ON CONFLICT DO UPDATE occurs

This fixes the seeder hanging issue and foreign key constraint violations
that were preventing successful database population.
2025-12-11 19:36:37 -03:00
..
applications.js first commit 2025-12-09 19:04:48 -03:00
cities.js first commit 2025-12-09 19:04:48 -03:00
companies.js first commit 2025-12-09 19:04:48 -03:00
jobs.js first commit 2025-12-09 19:04:48 -03:00
regions.js first commit 2025-12-09 19:04:48 -03:00
users.js fix(seeder): add SSL support and fix foreign key violations 2025-12-11 19:36:37 -03:00