prorm API Reference
    Preparing search index...

    Function Inherits

    • Decorator to specify table inheritance (PostgreSQL).

      Usage:

        @Inherits('parent_table')
      class ChildTable extends Model {}

      @Inherits({ parentTable: 'parent', only: true })
      class ChildOnlyTable extends Model {}

      Parameters

      • options: string | InheritsOptions

        Inheritance options (table name string or options object)

      Returns ClassDecorator