what is the best way of logging activities.i have 4 tables as below. i want to put the records in userwork table to a history_userwork table when the work is over. The history table should keep records more than 10 lakhs.
users or sections or works can be deleted at any time. should i loggin the actual names in log instaed of ids in that case? or keep another history tables for that.
Users [id ,name,Data]
Sections[id,name,Data]
Works[id,name,Data]
UserWork[userid,workid,sectionid,time,Data]