ConstMark a model field so its value is automatically hashed before INSERT/UPDATE.
This is a class decorator factory — pass the field name(s):
@SecureField('password')
@SecureField('pin', { algorithm: 'bcrypt', adapter: myAdapter })
class User extends Model { ... }
The ORM will call hashSecureFields(instance) in a beforeCreate / beforeUpdate hook to encrypt the field before it reaches the database.
Alias for SecureField — preferred shorthand.