Multi-tenant Prisma 7 without database row-level security — and the race condition my first cut introduced
A query-layer enforcement pattern using Prisma 7's $extends, the pre-check vs post-check split that closes the write race, and the gotcha that gets caught only by running a second-pass review on your own fix.
14 min read