Hi all,
I need to write a generic logging package as a service. The idea is to provide a proc that can be used to log actions taken place on the system. I want to use it as part of a CRM module where you log when for instance the user has contacted a customer, when he sent out a letter to the customer, when the customer contacted the user for a complaint and the like.
Now I am not sure how to define the data model. Shall a logged message be a cr_item or a table by its own? A logged message can either consist of a text or a binary file (like an uploaded letter received). It has a create date and a create user. Also it needs to refer to a customer. Another important issue is that the logged messages have to be store for at least 10 years. This can result into tons of data. Any thought whether I should log into postgres tables or better into files?
Greetings,
Nima