Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0
Why this matters
The worker's restart-safety depends on @@unique([transactionHash,eventType]), but no test inserts a duplicate (transactionHash,eventType) against a real DB and asserts the dedup behavior; tests/stream.repository.test.ts only covers CANCELLED/ACTIVE/PAUSED for updateStatus and never exercises the COMPLETED branch.
Acceptance criteria
Files to touch
backend/tests/stream.repository.test.ts
backend/tests/integration/stream-lifecycle.test.ts
backend/prisma/schema.prisma
Out of scope
- General coverage-threshold work
Why this matters
The worker's restart-safety depends on @@unique([transactionHash,eventType]), but no test inserts a duplicate (transactionHash,eventType) against a real DB and asserts the dedup behavior; tests/stream.repository.test.ts only covers CANCELLED/ACTIVE/PAUSED for updateStatus and never exercises the COMPLETED branch.
Acceptance criteria
Files to touch
backend/tests/stream.repository.test.tsbackend/tests/integration/stream-lifecycle.test.tsbackend/prisma/schema.prismaOut of scope