Is there a way to edit/list triggers and their content? I've created one by using SQL as the UI is a bit limited
CREATE TRIGGER trigger_apply_discount AFTER UPDATE OF used, used_by_order ON discount_codes FOR EACH ROW WHEN (NEW.used = TRUE AND OLD.used = FALSE) EXECUTE FUNCTION apply_discount_to_order();
CREATE TRIGGER trigger_apply_discount AFTER UPDATE OF used, used_by_order ON discount_codes FOR EACH ROW WHEN (NEW.used = TRUE AND OLD.used = FALSE) EXECUTE FUNCTION apply_discount_to_order();
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.