Task: Add Database-Level Length Constraints via Prisma #344
Labels
No labels
accessibility
api
auth.js
backend
copy
database
defect
dependencies
design
discussion
documentation
duplicate
enhancement
epic
feature
front-end
good first issue
help wanted
invalid
next.js
noscript
on hold
operations
optimization
postgresql
prisma
prototype
question
react
spike
stale
story
tailwind
vulnerability
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SSE/WebsiteTheSSEquel#344
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add Database-Level Length Constraints via Prisma
Description
The Prisma schema uses String type for all text fields with no length annotations. PostgreSQL maps these to TEXT columns with no enforced maximum. Adding @db.VarChar(N) annotations creates a hard DB-level backstop that catches oversized data even if app-layer Zod validation is bypassed (e.g. via direct DB access, future code paths, or migration scripts).
Associated Epic: #340
Subtasks
Acceptance Criteria