ferncabrera / open_ims

A custom Inventory Management Solution (IMS) designed and architected specifically for the Christensen Consulting Group (CCG).
MIT License
3 stars 0 forks source link

User Logs #227

Open Polsander opened 3 months ago

Polsander commented 3 months ago

According to the FIGMA, this is how the user read screen looks like.

image

We have here something called user activity. These are just user logs. Nothing more. A couple of problems here.

  1. As far as I know, we have no table in the DB that records logs.
  2. What is payout and why do we care? That seems so redundant and useless. If it's an invoice or purchase order, the log can reference the number or id. It seems like most fields won't have this anyways.
  3. Status will only ever be successful. Are we really going to record and document every failed DB query from a particular user? Considering in the future that some queries may fail because a user is not logged in, what then? We don't need a status.

We need a table. Let me know what name it should be and I will produce it. Also I think two fields are appropriate enough. Date, and log which will be of string type. Nothing else.

Polsander commented 3 months ago