Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "src/schema/Schema"

Index

Classes

Functions

Functions

Const entity

  • entity(): ClassDecorator
  • Entity decorator. It is required to be applied only if entity declares no field. If record declares any field, there no strict need to apply this decorator. Its better to do this anyway, for consistency.

    @entity()
    class Author extends Entity.mix(Base) {
    }
    
    @entity()
    class SpecialAuthor extends Author {
    }

    Returns ClassDecorator

Generated using TypeDoc