I have one smart contract, in which I am doing mapping of machine id and user id mentioned as below:
mapping(bytes32 => uint256) public machineAllocs; machineAllocs[machineId] = userId;
Now, I am assigning a user id to a machine id and also user id can be change for same machine id. So, if I want to know that on particular date what is last state(let's 11:59 pm) of particular machine id, means which last user id is mapped with that machine id.
So, how to fetch this details?