Fullstack TypeScript toolkit that enhances Prisma ORM with flexible Authorization layer for RBAC/ABAC/PBAC/ReBAC, offering auto-generated type-safe APIs and frontend hooks.
Environment (please complete the following information):
ZenStack version: 1.0.0-beta.18
Prisma version: 5.1.1
Database type: Postgresql
Test setup
enum InventoryUnit {
DIGITAL // no limit but we can still track sales
FL_OZ
GRAMS
MILLILITERS
OUNCES
UNIT
UNLIMITED
}
model TwoEnumsOneModelTest {
id String @id @default(cuid())
inventoryUnit InventoryUnit @default(UNIT)
inputUnit InventoryUnit @default(UNIT)
}
Description and expected behavior Using an enum in two separate fields of a model breaks Zod generation:
Environment (please complete the following information):
Test setup