prinzP
Convex Community2y ago
14 replies
prinz

Prisma --> Convex

channelId String
channel Channel @relation(fields: [channelId], references: [id], onDelete: Cascade)

channelId: v.string(),
channel: v.id("channels"),

The top is a Prisma schema definition, and the bottom is convex. Is that the correct schema translation from Prisma to convex? Thanks
Was this page helpful?