rwadurian/backend/services/mining-admin-service/prisma/migrations
hailin e00c81153b docs(migrations): add detailed comments for idempotency tables
- Add comments explaining unique key composition:
  - CDC events: (source_topic, offset) = Kafka topic + message offset
  - Outbox events: (source_service, event_id) = service name + outbox ID
- Fix contribution-service migration:
  - Extend source_service column from VARCHAR(50) to VARCHAR(100)
  - Set source_service as NOT NULL to match schema
  - Use snake_case for index name consistency
- Clarify that offset/event_id are NOT database auto-increment IDs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 19:44:46 -08:00
..
0001_init refactor(prisma): consolidate migrations into single init files 2026-01-12 11:04:24 -08:00
0002_fix_processed_event_composite_key docs(migrations): add detailed comments for idempotency tables 2026-01-12 19:44:46 -08:00
migration_lock.toml fix: add migration_lock.toml for prisma migrations 2026-01-12 08:09:34 -08:00