Current section

Files

Jump to
straw_hat_mailer lib straw_hat_mailer schema.ex
Raw

lib/straw_hat_mailer/schema.ex

defmodule StrawHat.Mailer.Schema do
@moduledoc false
defmacro __using__(_opts) do
quote do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
@timestamps_opts [type: :utc_datetime, usec: true]
end
end
end