This is a more complex setup but you can read this and get a good idea how to setup a simpler system without the need for triggers.
This is a more complex setup but you can read this and get a good idea how to setup a simpler system without the need for triggers.