Discussion about this post

User's avatar
Leonardo's avatar

Great post.

One thing I usually do is keep a 'jsonb' column for cases where I need to support dynamic or evolving models in Postgres. That way I can keep the core schema well-defined — PKs and stable columns — while still having flexibility for attributes that might change over time.

I know this can easily turn into a “magic column” if you're not careful, but I try to keep the main domain properly modeled and handle validation at the application layer.

Luke Mueller's avatar

Actually brilliant article - i would call this “First Principles OLTP Design” - essential for the new developer in 2026 (every AI tool practitioner).

No posts

Ready for more?