defmodule Invoicex do @moduledoc """ Main invoicex module. """ @doc """ Fetches ecto schema prefix specified in `:invoicex` configuration. This is used in enums and model schemas to specfify their database schema name. """ @spec schema_prefix :: nil | atom def schema_prefix, do: Application.get_env(:invoicex, :schema_prefix, nil) end