I have two tables A and B in MySQL. When a new record is inserted in A, a trigger inserts another one in B. What would be the correct way of doing that when creating that record in B I can execute a query that allows me to send the notification through firebase with php? through another trigger?.
The code to send the message by firebase is not the important thing.