View Source Beacon.Content.LayoutEvent (Beacon v0.2.1)

Represents a point in time when a Beacon.Content.Layout was created or published.

At that time, a Beacon.Content.LayoutSnapshot is created and stored with the LayoutEvent.

Do not create or edit layout events manually

Use the public functions in Beacon.Content instead. The functions in that module guarantee that all dependencies are created correctly and all processes are updated. Manipulating data manually will most likely result in inconsistent behavior and crashes.

Summary

Types

@type t() :: %Beacon.Content.LayoutEvent{
  __meta__: term(),
  event: String.t(),
  id: Ecto.UUID.t(),
  inserted_at: DateTime.t(),
  layout: Beacon.Content.Layout.t(),
  layout_id: Ecto.UUID.t(),
  site: Beacon.Types.Site.t(),
  snapshot: term()
}