config: add model relation

This commit is contained in:
Mahen 2026-02-08 18:06:38 +07:00
parent d65a0067ed
commit 946ad0db71
1 changed files with 3 additions and 0 deletions

View File

@ -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[]
}