When I try to save this value using my context function I get this error:
** (DBConnection.EncodeError) Postgrex expected %DateTime{}, got ~N[2022-12-01 05:35:36]. Please make sure the value you are passing matches the definition in your table or in your query or convert the value accordingly.
(postgrex 0.16.5) lib/postgrex/type_module.ex:947: Postgrex.DefaultTypes.encode_params/3
schema "email_performances" do
field :event_timestamp, :naive_datetime
field :event_type, Ecto.Enum, values: [:clicked, :opened]
belongs_to :sent_email, SentEmail
# BAD
# timestamps()
# GOOD
timestamps(type: :utc_datetime_usec)
end