I have a status_log table having the following columns:
User_id, isactive, date
Isactive signifies whether the user was active on that day onwards, untill the day