What's Changed
- Performance: avoid additional policy-checking db query when policy rules don't involve model fields
- Better VSCode formatting for ZModel files
- Better formatting for the generated
schema.prisma
file - Allow more keywords to be used as declaration names #391
- Fixed the problem that zenstack auxiliary fields are not stripped from nested entities #386
- Added missing attribute parameters for "@@Index", "@@unique" and "@@id" #390
- Fixed wrong validation error when relation foreign key is marked as "@id" instead of "@unique" #392
- Fixed deprecated import warning from "@prisma/client/runtime" package #312
Special thanks to @he-la, @potion-cellar, and @sidharthv96 for reporting multiple issues!
Full Changelog: v1.0.0-alpha.111...v1.0.0-alpha.114