brandocms / brando

A CMS of sorts.
Other
7 stars 2 forks source link

Add a papertrail #163

Open tmjoen opened 5 years ago

tmjoen commented 5 years ago

Tie schemas into this, so we get an audit log for items we need this on.

For instance, a page.

On save/update, add current user, time and action to the papertrail.

Table papertrail

field :action # [:create, :update, :delete, :auth]
field :data # :jsonb
field :creator
timestamps()

:data could be


%{
  schema: Brando.Pages.Page,
  id: 4,
  title: "About"
}
tmjoen commented 2 years ago

https://github.com/bitcrowd/carbonite