mitgliederverwaltung/lib/mv/constants.ex
Moritz cf6a108049
All checks were successful
continuous-integration/drone/push Build is passing
refactor: DRY - use Mv.Constants.custom_field_prefix() instead of string literals
2025-12-03 18:47:27 +01:00

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