Register beforeCreate and beforeUpdate hooks on a model so that
@Secure fields are automatically hashed whenever an instance is saved.
Call once per model after Model.init():
applySecureHooks(User);
The model class (result of prorm.define or Model.init)
TypeScript Decorators / Annotations for ts-prorm-orm
Exports all decorator utilities organized by category:
Encryption —
Secure
/
Secure Field
for password hashing Procedures —
Procedure
/
Sql Function
for stored procedures & SQL functions Views —
View
for mapping a Model class to a database view Permissions —
Can View
/
Cannot View
/
Permission
/
Can Write
/
Cannot Write