gohorsejobs/backend/migrations
Tiago Yamamoto ae4a3e5e63 feat: migrate from UUID v4 to UUID v7
Migrations:
- Fix 010_seed_super_admin.sql: only use columns from migration 001
- Add 021_create_uuid_v7_function.sql: PostgreSQL uuid_generate_v7() function
- Add 022_migrate_to_uuid_v7.sql: update notifications, tickets, job_payments to use v7

Seeder:
- Create seeder-api/src/utils/uuid.js with uuidv7() function
- Update notifications.js to use uuidv7() instead of randomUUID()

Docs:
- Update DATABASE.md with UUID v7 section and benefits

UUID v7 benefits:
- Time-ordered (sortable by creation time)
- Better index performance than v4
- RFC 9562 compliant
2025-12-24 11:19:26 -03:00
..
001_create_users_table.sql first commit 2025-12-09 19:04:48 -03:00
002_create_companies_table.sql first commit 2025-12-09 19:04:48 -03:00
003_create_user_companies_table.sql first commit 2025-12-09 19:04:48 -03:00
004_create_prefectures_cities_tables.sql first commit 2025-12-09 19:04:48 -03:00
005_create_jobs_table.sql first commit 2025-12-09 19:04:48 -03:00
006_create_applications_table.sql first commit 2025-12-09 19:04:48 -03:00
007_create_favorite_jobs_table.sql first commit 2025-12-09 19:04:48 -03:00
008_create_password_resets_table.sql first commit 2025-12-09 19:04:48 -03:00
009_create_core_tables.sql.disabled refactor: unify schema - eliminate core_* tables 2025-12-24 11:06:31 -03:00
010_seed_super_admin.sql feat: migrate from UUID v4 to UUID v7 2025-12-24 11:19:26 -03:00
011_add_is_featured_to_jobs.sql feat: implement dynamic featured jobs 2025-12-14 15:43:43 -03:00
012_add_work_mode.sql feat(db): 🏠 added work_mode because office is overrated anyway 2025-12-15 08:53:41 -03:00
013_create_backoffice_tables.sql Add admin backoffice routes and dashboard 2025-12-22 16:37:05 -03:00
014_update_job_status_constraint.sql Add admin backoffice routes and dashboard 2025-12-22 16:37:05 -03:00
015_add_candidate_profile_fields.sql Add dynamic candidate management data 2025-12-22 19:18:15 -03:00
016_create_notifications_table.sql feat: Implement Ticket System, Profile Page integration, and fix migrations 2025-12-23 19:22:55 -03:00
017_create_tickets_table.sql feat: Implement Ticket System, Profile Page integration, and fix migrations 2025-12-23 19:22:55 -03:00
018_add_currency_to_jobs.sql feat: enhance job form with currency, salary periods, contract types, and add ER diagram docs 2025-12-23 22:49:33 -03:00
019_create_job_payments_table.sql fix(migrations): change job_payments FK types from UUID to INT 2025-12-24 10:49:33 -03:00
020_unify_schema.sql refactor: unify schema - eliminate core_* tables 2025-12-24 11:06:31 -03:00
021_create_uuid_v7_function.sql feat: migrate from UUID v4 to UUID v7 2025-12-24 11:19:26 -03:00
022_migrate_to_uuid_v7.sql feat: migrate from UUID v4 to UUID v7 2025-12-24 11:19:26 -03:00
999_fix_gohorse_schema.sql first commit 2025-12-09 19:04:48 -03:00