rwadurian/backend/services/mining-admin-service/prisma
hailin ea789f7fec fix(mining-admin): remove CDC sync table foreign key constraints
CDC events arrive asynchronously and order is not guaranteed.
Child records (referrals, accounts) may arrive before parent (users).
This follows CDC best practices: destination tables should not have FK constraints.

Reference: https://estuary.dev/blog/cdc-done-correctly/

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 08:24:10 -08:00
..
migrations fix(mining-admin): remove CDC sync table foreign key constraints 2026-01-12 08:24:10 -08:00
schema.prisma fix(mining-admin): remove CDC sync table foreign key constraints 2026-01-12 08:24:10 -08:00