Pick the smallest data type that fits the domain instead of defaulting to BIGINT or wide VARCHAR.
Why This Matters
Over-wide types waste storage and memory and bloat indexes, slowing scans and buffer-pool usage.
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.