Data validation is a topic that I keep coming back to when considering Supabase as a platform. How are people solving this today? Is the only current way to use db functions for validation?
You can probably also use the RLS, since RLS just requires a boolean variable to determine whether it's OK to write or NOT, and that boolean can be based on anything you need, not just auth info
Thanks chipilov. Do you know if it's possible to apply a more complicated check, like regex in a constraint check? I often find myself making sure that ppl don't intentionally (or by accident) add something that might cause problems.
"Always validate user input" comes to mind 🙂