Hi everyone,
I have a question regarding a database setup involving four tables: items, location, delivery, and delivery_logs. The items table contains equipment details, including a location. The delivery table includes a location and a delivery status. Lastly, the delivery_logs table indicates the different items (with a one-to-many relationship) included in each delivery.
I am looking for a solution where, when the delivery status changes from “pending” to “delivered,” I want the location of each item to be updated with the location indicated in the delivery. Is this possible?
Any insights or suggestions would be greatly appreciated.
Thank you in advance.