34 lines
608 B
Elixir
34 lines
608 B
Elixir
defmodule Mv.Constants do
|
|
@moduledoc """
|
|
Module for defining constants and atoms.
|
|
"""
|
|
|
|
@member_fields [
|
|
:first_name,
|
|
:last_name,
|
|
:email,
|
|
:paid,
|
|
:phone_number,
|
|
:join_date,
|
|
:exit_date,
|
|
:notes,
|
|
:city,
|
|
:street,
|
|
:house_number,
|
|
:postal_code
|
|
]
|
|
|
|
@custom_field_prefix "custom_field_"
|
|
|
|
def member_fields, do: @member_fields
|
|
|
|
@doc """
|
|
Returns the prefix used for custom field keys in field visibility maps.
|
|
|
|
## Examples
|
|
|
|
iex> Mv.Constants.custom_field_prefix()
|
|
"custom_field_"
|
|
"""
|
|
def custom_field_prefix, do: @custom_field_prefix
|
|
end
|