What's the best way to store changes to database records that require approval before being visible?

前端 未结 8 1684
说谎
说谎 2020-12-07 13:44

I need to store user entered changes to a particular table, but not show those changes until they have been viewed and approved by an administrative user. While those chang

8条回答
  •  自闭症患者
    2020-12-07 14:19

    Yet another idea would be to have three tables.

    • One would be the main table to hold the original data.
    • The second would hold the proposed data.
    • The third would hold the historical data.

    This approach gives you the ability to quickly and easily roll back and also gives you an audit trail if you need it.

提交回复
热议问题