📄️ Lesson 0: Bản chất của Decorator
Hiểu bản chất của Decorator Pattern (GoF) và cơ chế hoạt động của decorator trong TypeScript/TypeORM thông qua reflect-metadata. Nền tảng cốt lõi để hiểu mọi thứ trong TypeORM.
📄️ Lesson 1: Mở đầu & Data Source
Giới thiệu TypeORM, so sánh trước/sau, và hướng dẫn cấu hình Data Source: Multiple DataSources, Replication (Master-Slave), xử lý null/undefined trong WHERE.
📄️ Lesson 2: Entity & Relations
Cẩm nang tra cứu Entity và Relations trong TypeORM: Embedded, Inheritance, Tree, View, EntitySchema, OneToOne, ManyToMany, Eager/Lazy, Cascade.
📄️ Lesson 3: Quản lý Migrations
Quản lý Migrations trong TypeORM: cách hoạt động UP/DOWN, CLI commands (generate, run, revert), Fake migrations, và Query Runner API để viết SQL trực tiếp.
📄️ Lesson 4: Thao Tác Dữ Liệu
Thao tác dữ liệu với TypeORM: EntityManager vs Repository, Find Options, Repository API, Custom Repositories, Query Builder (joins, where, getMany), và Database Transactions chuẩn với try-catch-finally.
📄️ plan
Prompt: