Fields.PhoneNumber (fields v2.8.0)
An Ecto Type for plaintext phone numbers.
Useful for publicly available numbers such as customer support.
See Fields.PhoneNumberEncrypted
for storing numbers that are Personally Identifiable Information.
Example
schema "retailers" do
field(:phone_number, Fields.PhoneNumber)
end
Link to this section Summary
Link to this section Functions
Link to this function
cast(value)
Link to this function
dump(value)
Link to this function
embed_as(_)
Link to this function
equal?(term1, term2)
Link to this function
load(value)
Link to this function