From 946ad0db715620f7a84c8056673fee90f84ade18 Mon Sep 17 00:00:00 2001 From: Mahen Date: Sun, 8 Feb 2026 18:06:38 +0700 Subject: [PATCH] config: add model relation --- prisma/schema.prisma | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 50b0f62..06eeada 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -100,6 +100,7 @@ model Product { model Review { id Int @id @default(autoincrement()) productId Int + modelId Int content String keywords String[] sentiment Sentiment @@ -108,6 +109,7 @@ model Review { updatedAt DateTime @updatedAt product Product @relation(fields: [productId], references: [id]) + model Model @relation(fields: [modelId], references: [id]) analysis Analysis[] } @@ -123,4 +125,5 @@ model Model { updatedAt DateTime @updatedAt analysis Analysis[] + review Review[] }