Hello, I have a collection will store two status of a product, the payment_status is about the status of “paid” or “unpaid”, the deliver_status is status about “delivered” or “undelivered”. Some of the user with role “seller” can change the value of payment_status, some users with role “customer” can change the value of delivered_status. For every changes on every status, I want to record the value change and who made such change. Is there a way to do that? To make sure the payment_status can only be changed by role “seller”, is there way to do that, like in schema validation?
Thanks,
James