Use moddatetime triggers for updated_at columns
Use database triggers to auto-update updated_at instead of setting it in application code.
Why This Matters
Manually setting updated_at in application code is error-prone — any code path that updates the row but forgets to set updated_at leaves stale timestamps.
Tags
nextjssupabase
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 2+ others. Get actionable feedback before code ships.