List.last(booking.paper_trail_versions) #=> %Marge.AshDomains.Reservations.Booking.Version{
actor: #Ash.NotLoaded<:relationship, field: :actor>,
version_source: #Ash.NotLoaded<:relationship, field: :version_source>,
__meta__: #Ecto.Schema.Metadata<:loaded, "bookings_versions">,
id: "a2a52dc5-989e-400e-8552-8f76201a934c",
version_action_type: :update,
version_action_name: :update,
version_action_inputs: %{
"notes" => "Guest want apple in the room and also pears and saucisson and bread and wine and beer and strawberries with champagne or sauterne and rasberries and bier (german's one or french one's) and chocolate and mousse and sauternes"
},
version_source_id: "74274c18-fbea-4a84-9500-66507f16326b",
changes: %{
"accounting" => %{
"camp" => %{
"detail" => [
...
...
...
"adult_count" => 2,
"child_count" => 0,
"discount_lodging" => "0.25",
"end_date" => "2025-08-05",
"notes" => "Guest want apple in the room and also pears and saucisson and bread and wine and beer and strawberries with champagne or sauterne and rasberries and bier (german's one or french one's) and chocolate and mousse and sauternes",
"start_date" => "2025-08-03",
"status" => "draft",
"tax_exempt" => true
},
version_inserted_at: ~U[2025-08-12 10:06:44.463563Z],
version_updated_at: ~U[2025-08-12 10:06:44.463563Z],
actor_id: nil
}
List.last(booking.paper_trail_versions) #=> %Marge.AshDomains.Reservations.Booking.Version{
actor: #Ash.NotLoaded<:relationship, field: :actor>,
version_source: #Ash.NotLoaded<:relationship, field: :version_source>,
__meta__: #Ecto.Schema.Metadata<:loaded, "bookings_versions">,
id: "a2a52dc5-989e-400e-8552-8f76201a934c",
version_action_type: :update,
version_action_name: :update,
version_action_inputs: %{
"notes" => "Guest want apple in the room and also pears and saucisson and bread and wine and beer and strawberries with champagne or sauterne and rasberries and bier (german's one or french one's) and chocolate and mousse and sauternes"
},
version_source_id: "74274c18-fbea-4a84-9500-66507f16326b",
changes: %{
"accounting" => %{
"camp" => %{
"detail" => [
...
...
...
"adult_count" => 2,
"child_count" => 0,
"discount_lodging" => "0.25",
"end_date" => "2025-08-05",
"notes" => "Guest want apple in the room and also pears and saucisson and bread and wine and beer and strawberries with champagne or sauterne and rasberries and bier (german's one or french one's) and chocolate and mousse and sauternes",
"start_date" => "2025-08-03",
"status" => "draft",
"tax_exempt" => true
},
version_inserted_at: ~U[2025-08-12 10:06:44.463563Z],
version_updated_at: ~U[2025-08-12 10:06:44.463563Z],
actor_id: nil
}