[New to DB triggers/transactions]
In my app, my users are allowed to create, edit and delete rooms. In the event that a room with items assigned to it gets removed, I want to default their room location to a generic room called "unassigned." Right now I'm doing this in the application level. My question is, should I be doing this in the DB level? If this should indeed occur in MySQL using triggers, how do I go about making my app aware of any failures or successes?