Prisma
@prisma.io
6 months ago A buggy app is one thing. A buggy database with corruption is another.
Constraints are a big help. Simple examples:
✅ UNIQUE (user_id, billing_period)
✅ CHECK (price >= 0)
✅ EXCLUDE USING gist (timespan WITH &&)
Use them to your advantage ✌️
💬 0
♻️ 0
❤️ 3