[data-reveal]{opacity:1!important;transform:none!important}
Database Decorators

Interface Database Decorators

Overview

The Interface Database Decorators package provides a structured, decorator-based framework for defining database tables, applying field-level modifiers (encryption, hashing, localization), building data models with CRUD operations, and injecting models into API controllers. It builds on top of the @antelopejs/interface-database package and integrates with the @antelopejs/interface-api package for controller parameter injection.

Dependencies

This package depends on the following:

Documentation

  • Table Definitions - Define database tables with the Table class, Index decorator, and Fixture decorator
  • Table Modifiers - Apply encryption, hashing, and localization modifiers to table fields, or create custom modifiers
  • Data Models - Create data models with BasicDataModel for CRUD operations and data conversion
  • Parameter Decoration - Inject model instances into API controller methods with the Model decorator