nexus/packages/db/src
Nexus Dev 3f1535f295 feat(26-04): create push_subscriptions schema, migration, pushService, and push routes
- Add push_subscriptions pgTable with endpoint, p256dh, auth, userId, companyId, deviceLabel
- Add 0055_create_push_subscriptions.sql migration with CREATE TABLE and endpoint index
- Export pushSubscriptions from schema/index.ts
- Create pushService with initVapid, getVapidPublicKey, saveSubscription, removeSubscription, sendPushToAll
- sendPushToAll auto-deletes stale subscriptions on 410/404 response
- Create pushRoutes: GET /vapid-public-key, POST /subscribe, DELETE /subscribe
- Mount /api/push routes and call initVapid() in app.ts with graceful skip
- Install web-push and @types/web-push
2026-04-02 15:08:51 +00:00
..
migrations feat(26-04): create push_subscriptions schema, migration, pushService, and push routes 2026-04-02 15:08:51 +00:00
schema feat(26-04): create push_subscriptions schema, migration, pushService, and push routes 2026-04-02 15:08:51 +00:00
backup-lib.ts Fix worktree minimal clone startup 2026-03-10 10:13:05 -05:00
backup.ts Add configurable automatic database backup scheduling 2026-03-04 18:03:23 -06:00
client.test.ts fix(db): make document revision migration replay-safe 2026-03-31 08:09:00 -05:00
client.ts Add routines automation workflows 2026-03-19 08:39:24 -05:00
embedded-postgres-error.test.ts Improve embedded Postgres bootstrap errors 2026-03-26 12:35:19 -05:00
embedded-postgres-error.ts Improve embedded Postgres bootstrap errors 2026-03-26 12:35:19 -05:00
index.ts Improve embedded Postgres bootstrap errors 2026-03-26 12:35:19 -05:00
migrate.ts Fix dev migration prompt and embedded db:migrate 2026-03-10 15:31:05 -05:00
migration-runtime.ts Improve embedded Postgres bootstrap errors 2026-03-26 12:35:19 -05:00
migration-status.ts feat(costs): add billing, quota, and budget control plane 2026-03-16 15:11:01 -05:00
runtime-config.test.ts Fix env-sensitive worktree and runtime config tests 2026-03-11 16:38:31 -05:00
runtime-config.ts Fix dev migration prompt and embedded db:migrate 2026-03-10 15:31:05 -05:00
seed.ts Expand data model with companies, approvals, costs, and heartbeats 2026-02-17 09:07:22 -06:00
test-embedded-postgres.ts test(worktree): address embedded postgres helper review feedback 2026-03-26 11:56:05 -05:00