How to add an audit log to a Next.js SaaS with Drizzle ORM -- a dedicated table, a service helper that records any action without breaking the primary operation, and a server component that renders the history for support and compliance.
How to replace slow OFFSET queries with cursor-based pagination in a Next.js SaaS -- a Drizzle ORM keyset query, a base64url cursor codec, and a URL-driven server component that stays fast as your table grows.
How to implement soft deletes in a Next.js SaaS with Drizzle ORM -- a deleted_at column, default query filters, a partial index for performance, and a service layer restore pattern that keeps data recoverable.
How to wrap multi-table writes in a Drizzle ORM transaction, pass the tx object into your repository layer, and keep side effects outside the commit -- the full pattern for atomic SaaS operations.
The difference between drizzle-kit generate and drizzle-kit push, when each belongs in your workflow, and how to run migrations safely against a production Neon DB.