Tiago Yamamoto
3ab04c5fd7
feat(seeder): interleave users and companies before heavy city seeding
2025-12-24 18:25:50 -03:00
Tiago Yamamoto
4b3eb2feee
feat(seeder): add detailed execution timers (stopwatch) for location data
2025-12-24 18:22:40 -03:00
Tiago Yamamoto
858df02a1d
feat(seeder): optimize city loading with bulk inserts and fix migration order
2025-12-24 18:19:03 -03:00
Tiago Yamamoto
d3c06f5564
feat: expand testing, add fast seeder options, hardcode superadmin
...
- start.sh: Add options 8 (Seed LITE - skip cities) and 9 (Run All Tests)
- seeder: Add seed:lite, seed:fast scripts and --skip-locations flag
- seeder: Remove superadmin creation (now via backend migration)
- backend: Update 010_seed_super_admin.sql with hardcoded hash (Admin@2025! + pepper)
- backend: Expand jwt_service_test.go with 5 new tests (+10% coverage)
- frontend: Fix api.test.ts URL duplication bug, add error handling tests
- seeder: Add SQL data files to .gitignore
2025-12-24 17:07:45 -03:00
Tiago Yamamoto
7720f2e35e
fix(seeder): fix location data column schema transformations
...
- Fixed regex patterns that incorrectly matched SET inside quoted values
- Added transformSubregionsInsert() - maps 8 dump cols to schema cols
- Added transformCountriesInsert() - maps 32 dump cols to 25 schema cols
- Added transformStatesInsert() - maps 20 dump cols to 15 schema cols
- Added transformCitiesInsert() - maps 19 dump cols to 15 schema cols
- Added parseValues() helper for parsing SQL VALUES with JSON handling
- Successfully seeds: continents(6), subregions(22), countries(250), states(5296)
2025-12-24 16:12:29 -03:00
Tiago Yamamoto
54552b2dcd
fix(seeder): add table name mapping for location data (regions→continents)
2025-12-24 15:07:25 -03:00
Tiago Yamamoto
1018da8036
feat(location): add comprehensive geographic hierarchy (continents, countries, states, cities)
...
- Add migration 021_location_hierarchy.sql with new table structure
- Add location-loader.js seeder to import SQL dumps
- Update all seeder files to use country_id instead of region_id
- Rename companies.region_id to country_id
2025-12-24 15:04:21 -03:00