Drupal 12 introduces one of the biggest improvements to the Database Schema API in years. The traditional nested array structure used to define database schemas is being replaced with a modern, object-oriented API built around immutable value objects.
This change makes schema definitions easier to validate, safer to extend, and opens the door for future database-specific capabilities without sacrificing Drupal's database abstraction.