change nademitex2
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS "StockNotifyRequest";
|
||||
@@ -204,7 +204,6 @@ model Product {
|
||||
orderItems OrderItem[]
|
||||
favorites ProductFavorite[]
|
||||
catalogRequestItems CatalogRequestItem[]
|
||||
stockNotifyRequests StockNotifyRequest[]
|
||||
productSuggestions ProductSuggestion[]
|
||||
|
||||
@@unique([companyId, code])
|
||||
@@ -254,7 +253,6 @@ model Customer {
|
||||
remindersAbout Reminder[] @relation("ReminderCustomer")
|
||||
favorites ProductFavorite[]
|
||||
catalogRequests CatalogRequest[]
|
||||
stockNotifyRequests StockNotifyRequest[]
|
||||
productSuggestions ProductSuggestion[]
|
||||
customerBrands CustomerBrand[]
|
||||
addresses CustomerAddress[]
|
||||
@@ -724,21 +722,6 @@ model CatalogItemMovement {
|
||||
@@index([itemId])
|
||||
}
|
||||
|
||||
model StockNotifyRequest {
|
||||
id String @id @default(cuid())
|
||||
customerId String
|
||||
productId String
|
||||
active Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
notifiedAt DateTime?
|
||||
|
||||
customer Customer @relation(fields: [customerId], references: [id], onDelete: Cascade)
|
||||
product Product @relation(fields: [productId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([customerId, productId])
|
||||
@@index([productId, active])
|
||||
}
|
||||
|
||||
model ProductSuggestion {
|
||||
id String @id @default(cuid())
|
||||
customerId String
|
||||
|
||||
Reference in New Issue
Block a user