Decorator to specify table inheritance (PostgreSQL).
Usage:
@Inherits('parent_table') class ChildTable extends Model {} @Inherits({ parentTable: 'parent', only: true }) class ChildOnlyTable extends Model {} Copy
@Inherits('parent_table') class ChildTable extends Model {} @Inherits({ parentTable: 'parent', only: true }) class ChildOnlyTable extends Model {}
Inheritance options (table name string or options object)
Decorator to specify table inheritance (PostgreSQL).
Usage: