Concept Flow - Trigger for data validation
Insert/Update/Delete operation
Trigger fires BEFORE/AFTER operation
Trigger function runs
Validation passes
Operation allowed
End
When a data change happens, the trigger runs a function that checks the data. If the data is valid, the change continues; if not, it stops with an error.