Erebus.Schema.hashed_encrypted_field
You're seeing just the macro
hashed_encrypted_field
, go back to Erebus.Schema module for more information.
Defines three fields:
name
: virtual field of typestring
name_encrypted
: field of typebinary
storing encrypted dataname_hash
: field of typestring
, storing sha512 version of given data, for quick searching
Please note that if you're using it with a database underneath, these fields need to be of type:
name_encrypted
:bytea
name_hash
:text