Databases
Database
NestJS
Prisma
enum
Why Database Enums Aren't as Simple as They Look (and What to Use Instead)
Enums feel like the simplest way to restrict a column to a fixed set of values, but in practice they bring migration pain, poor flexibility, and hidden coupling. Here's what goes wrong, and how to model status/type fields better in NestJS and Prisma.