Questions tagged [single-table-inheritance]

One of the most straightforward methods for organizing SQL tables to represent a class/subclass or generalization/specialization connection is known as single table inheritance.

Managing relationships within TypeORM's single table inheritance using a base class for targeting relations

In my application, I aim to provide users with notifications in the form of news items of various types. The relationship between User and NewsItem needs to be one-to-many, with NewsItem serving as a base class for different types of news items. Below is ...