Write a simple Apex trigger scenario that automatically updates a child record's status when the parent record is modified.