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.
Description and expected behavior
When I use polymorphic feature withs models that have long names, I got Prisma schema validation error due to long map argument in @relation constraint. The maximum allowed length is 63 bytes for PostgreSql. The issue can be temporarily fixed by manually replacing the generated map argument with a shorter string.
I can see myself easily getting this error as I have descriptive model names.
Screenshots
Environment (please complete the following information):
Description and expected behavior When I use polymorphic feature withs models that have long names, I got Prisma schema validation error due to long
map
argument in@relation
constraint. The maximum allowed length is 63 bytes for PostgreSql. The issue can be temporarily fixed by manually replacing the generated map argument with a shorter string.I can see myself easily getting this error as I have descriptive model names.
Screenshots
Environment (please complete the following information):
Additional context N/A