2 karma · joined Jun 26, 2020 (6y ago) · 4 submissions
comment 6y ago · link · parent
You can also use introspection to keep the database as the source of truth for the model, and lean on the Prisma schema for type safety if you prefer.
You get type safety if using it with TypeScript though: this is where Prisma adds a lot of value. Compile-time warnings, ease of refactoring...