feat(email): track deliverability#301
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new deliverability-tracking data model in the vibetype_private schema to persist email addresses that should be treated as bounced/complained/unsubscribed, including migration + revert + verification wiring via Sqitch and updated test schema fixtures.
Changes:
- Introduces
vibetype_private.email_address_statusenum andvibetype_private.email_addresstable with constraints, FK tovibetype.account, index, and metadata update trigger. - Adds Sqitch deploy/revert/verify scripts for the new table and updates
sqitch.plan. - Updates the SQL test fixture schema to include the new type/table/index/trigger definitions.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/fixture/schema_vibetype.definition.sql | Updates test fixture schema to include the new enum, table, constraints, index, and trigger. |
| src/deploy/table_email_address.sql | Deploys the new enum + table + index + metadata trigger in vibetype_private. |
| src/revert/table_email_address.sql | Reverts the new enum/table/trigger (migration rollback). |
| src/verify/table_email_address.sql | Adds verification script for the new table. |
| src/sqitch.plan | Registers the new change in the Sqitch plan with dependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Database Query Performance✅ No significant regressions detected
Details
|
c162481 to
13f99ad
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
13f99ad to
b8acbb0
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b8acbb0 to
4d68c1e
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4d68c1e to
9eb66ce
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request introduces a new table to track email addresses with deliverability issues (such as bounces, complaints, and unsubscribes) in the
vibetype_privateschema. The implementation includes a new enum type for email address status, associated constraints, metadata triggers, and relevant schema updates for migration and verification. The changes also include the necessary revert and verification scripts, as well as updates to the test schema fixtures.