diff --git a/prisma/schema.prisma b/prisma/schema.prisma index f672abd..da87c0d 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -470,43 +470,3 @@ model SupplyOrderItem { @@unique([supplyOrderId, productId]) @@map("supply_order_items") } - -model WildberriesSupply { - id String @id @default(cuid()) - organizationId String - deliveryDate DateTime? - status WildberriesSupplyStatus @default(DRAFT) - totalAmount Decimal @db.Decimal(12, 2) - totalItems Int - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) - cards WildberriesSupplyCard[] - - @@map("wildberries_supplies") -} - -model WildberriesSupplyCard { - id String @id @default(cuid()) - supplyId String - nmId String - vendorCode String - title String - brand String? - price Decimal @db.Decimal(12, 2) - discountedPrice Decimal? @db.Decimal(12, 2) - quantity Int - selectedQuantity Int - selectedMarket String? - selectedPlace String? - sellerName String? - sellerPhone String? - deliveryDate DateTime? - mediaFiles Json @default("[]") - selectedServices Json @default("[]") - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - supply WildberriesSupply @relation(fields: [supplyId], references: [id], onDelete: Cascade) - - @@map("wildberries_supply_cards") -}