Use GENERATED ... AS IDENTITY or uuid for surrogate keys instead of the legacy serial pseudo-type.
Why This Matters
serial creates an implicitly-owned sequence with awkward permission and ownership semantics; identity is SQL-standard and cleaner to manage.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.