veza/veza-backend-api/migrations
senke 07c0959b8d [BE-DB-002] backend-database: Add foreign key constraints where missing
- Created migration 930_add_missing_foreign_keys.sql
- Added FK constraints for legacy fields: tracks.user_id, rooms.owner_id, messages.user_id, messages.parent_id
- Added FK constraint for audit_logs.user_id
- All constraints use ON DELETE SET NULL for legacy fields and audit_logs
- Verified primary foreign keys already have proper constraints in existing migrations
- Models already have proper GORM foreignKey tags

Phase: PHASE-1
Priority: P0
Progress: 12/267 (4.5%)
2025-12-23 01:48:33 +01:00
..
001_extensions_and_types.sql P0: stabilisation backend/chat/stream + nouvelle base migrations v1 2025-12-06 11:14:38 +01:00
010_auth_and_users.sql P0: stabilisation backend/chat/stream + nouvelle base migrations v1 2025-12-06 11:14:38 +01:00
011_cleanup_refresh_tokens.sql stabilizing apps/web: FIRST BATCH 2025-12-17 08:07:35 -05:00
020_create_sessions.sql refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
020_rbac_and_profiles.sql report generation and future tasks selection 2025-12-08 19:57:54 +01:00
030_files_management.sql P0: stabilisation backend/chat/stream + nouvelle base migrations v1 2025-12-06 11:14:38 +01:00
040_streaming_core.sql stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
041_streaming_analytics.sql P0: stabilisation backend/chat/stream + nouvelle base migrations v1 2025-12-06 11:14:38 +01:00
042_media_processing.sql P0: stabilisation backend/chat/stream + nouvelle base migrations v1 2025-12-06 11:14:38 +01:00
043_analytics_events.sql P0: stabilisation backend/chat/stream + nouvelle base migrations v1 2025-12-06 11:14:38 +01:00
050_legacy_chat.sql P0: stabilisation backend/chat/stream + nouvelle base migrations v1 2025-12-06 11:14:38 +01:00
060_job_queue.sql feat(backend-worker): persist job queue in postgres 2025-12-06 13:32:32 +01:00
900_triggers_and_functions.sql P0: stabilisation backend/chat/stream + nouvelle base migrations v1 2025-12-06 11:14:38 +01:00
910_create_audit_logs.sql stabilizing apps/web: THIRD BATCH - FIXED Playwright 2025-12-21 18:55:51 -05:00
920_add_performance_indexes.sql [BE-DB-001] backend-database: Add database indexes for performance-critical queries 2025-12-23 01:47:33 +01:00
930_add_missing_foreign_keys.sql [BE-DB-002] backend-database: Add foreign key constraints where missing 2025-12-23 01:48:33 +01:00