expand offers

This commit is contained in:
ntr committed 2022-12-21 22:02:24 +11:00
1 parent f0623cb74b
commit 6b73831b51
5 files changed
+25 -23

No files matched your search

+3
View File
@@ -80,6 +80,9 @@ model Offer {
wantId String @db.Uuid
want Want @relation(fields: [wantId], references: [id], onDelete: Cascade)
createdAt DateTime @default(now())
updatedAt DateTime @default(now())
// only one offer per want for a user
// @@unique([userId, wantId])
@@unique([listingId])