Task 16: Extend Drizzle schema with outbox table

Open Beginner friendly
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
bun, typescript
Domain
database

Research direction

Update src/lib/db/schema.ts with the specified outbox table and index. Run bunx drizzle-kit generate --name=add-outbox and inspect the generated 0002_add_outbox.sql. Done means the schema includes all listed columns, the pending-by-account index is present, and the migration SQL matches the change.

Written by the indexing model from the issue text.

Description

area:db type:feature

Add outbox table to src/lib/db/schema.ts. Columns: id, provider, account_email, operation, payload_json, change_key_expected, provider_event_id, status, retry_count, error_message, error_code, last_attempt_at, created_at, updated_at. Index outbox_pending_by_account_idx on (status, provider, account_email).

Run bunx drizzle-kit generate --name=add-outbox0002_add_outbox.sql. Verify migration SQL.

Plan §Task 16.

Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from swissonid/zero-line

All issues in swissonid/zero-line

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.