title: How to ask database to automatically reassign a certain value in a table after 24 hours?
body: <p>Let's say a player's energy is recorded in a table as "20". As he engages in mission, his energy decreases and reaches 0. However, it would be replenish back to "20" the following day. How do the database detect that a new day has arrive and then automatically assign some value in a certain table?</p>