defmodule EctoTrailer.Changelog do @moduledoc """ This is schema that used to store changes in DB. """ use Ecto.Schema @table_name Application.compile_env(:ecto_trailer, :table_name, "audit_log") schema @table_name do field(:actor_id, :string) field(:resource, :string) field(:resource_id, :string) field(:changeset, :map) field(:change_type, EctoTrailChangeEnum) timestamps(type: :utc_datetime, updated_at: false) end end