From bc2cacf2041cc9ca8eeb79984ac5f10e5db293e8 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 11 Dec 2023 20:08:50 -0500 Subject: [PATCH] fix: cid needs to be unique --- prisma/schema.prisma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index fda6936..c950736 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -11,7 +11,7 @@ model Article { id Int @id @default(autoincrement()) title String slug String - cid String + cid String @unique url String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt