# Make admin user "approve" database changes

**URL:** <https://forum.elixirforum.com/t/make-admin-user-approve-database-changes/59920>\
**Category:** Questions\
**Tags:** databases, phoenix\
**Created:** [November 23, 2023, 8:17am UTC](https://forum.elixirforum.com/t/make-admin-user-approve-database-changes/59920 "2023-11-23T08:17:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mayel](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mayel/32/26431_2.png) [@mayel](https://forum.elixirforum.com/u/mayel)\
**Post date:** [November 23, 2023, 8:49am UTC](https://forum.elixirforum.com/t/make-admin-user-approve-database-changes/59920/2 "2023-11-23T08:49:58Z")

</div>

One approach could be storing the user suggested changes as a single map rather than in the relational tables, and only properly inserting them there on admin approval, like this function does for e.g.: [paper\_trail/lib/paper\_trail.ex at main · bonfire-networks/paper\_trail · GitHub](https://github.com/bonfire-networks/paper_trail/blob/main/lib/paper_trail.ex#L33) (and using that lib would also give you version history)

---

_[View the full topic](https://forum.elixirforum.com/t/make-admin-user-approve-database-changes/59920)._
