lib/exshome/schema.ex
defmodule Exshome.Schema do
@moduledoc """
Base module with default schema settings.
"""
defmacro __using__(_) do
quote do
use Ecto.Schema
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
@timestamps_opts [type: :utc_datetime_usec]
end
end
end