Tag: typeorm
All the articles with the tag "typeorm".
-
Affiliate & Referral Tree — Materialized Path Hierarchy on UserEntity
Add a self-referential affiliate tree to UserEntity using the materialized path pattern — store each user's ancestry as a string path, enabling O(1) depth lookups, efficient descendant queries with a single LIKE clause, and referral commission calculations without recursive CTEs.
-
Advanced Data Patterns — Column Transformers, Audit Columns & Shared Libraries
Add reusable TypeORM column transformers (lowercase, slug), wire up createdBy/updatedBy audit columns via a request-scoped TypeORM subscriber, build a running number service for ordered sequences, and extract shared config into libs/core for multi-app monorepo reuse.
-
Database - PostgreSQL, TypeORM, Entities & Migrations
By the end of this part, you will learn PostgreSQL, TypeORM, AbstractEntity, SnakeNamingStrategy, migration lifecycle and verify your schema in Adminer.