zenstackhq / zenstack

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.
https://zenstack.dev
MIT License
2.07k stars 88 forks source link

Extend zenstack numeric functions to decimal #657

Closed sitch closed 1 year ago

sitch commented 1 year ago

These https://zenstack.dev/docs/reference/zmodel-language#number should apply to Int, Float, and Decimal.

Example:

model Example {
  decimalNumber Decimal @gt(0) // doesn't work
}
ymc9 commented 1 year ago

Fixed in 1.0.0-beta.21