API with NestJS #170. Polymorphic associations with PostgreSQL and Drizzle ORM
It’s not uncommon for a single table to be related to multiple similar tables. A good example is a comment the user can write under a photo, an article, or an audio file. A possible approach would be to create a separate table for each type of comment, such as PhotoComment or ArticleComment. Unfortunately, this […]