feat: 为预约建立业务提供项关联
This commit is contained in:
1 parent
11d0424669
commit
270136d24e
4 files changed
+29
-1
No files matched your search
@@ -152,6 +152,8 @@ model Offering {
|
||||
updatedAt DateTime @updatedAt
|
||||
services Service[]
|
||||
inquiryForms InquiryForm[]
|
||||
bookings Booking[]
|
||||
bookingItems BookingItem[]
|
||||
@@unique([brandId, name])
|
||||
@@index([brandId, isEnabled, sortOrder])
|
||||
}
|
||||
@@ -231,6 +233,8 @@ model Booking {
|
||||
fulfillmentType FulfillmentType?
|
||||
serviceId String?
|
||||
service Service? @relation(fields: [serviceId], references: [id], onDelete: SetNull)
|
||||
offeringId String?
|
||||
offering Offering? @relation(fields: [offeringId], references: [id], onDelete: SetNull)
|
||||
requestedDate DateTime?
|
||||
requestedTime String?
|
||||
deliveryAddress String?
|
||||
@@ -254,6 +258,8 @@ model BookingItem {
|
||||
booking Booking @relation(fields: [bookingId], references: [id], onDelete: Cascade)
|
||||
serviceId String?
|
||||
service Service? @relation(fields: [serviceId], references: [id], onDelete: SetNull)
|
||||
offeringId String?
|
||||
offering Offering? @relation(fields: [offeringId], references: [id], onDelete: SetNull)
|
||||
serviceNameSnapshot String
|
||||
unitPriceSnapshot Int
|
||||
quantity Int
|
||||
|
||||
Reference in new issue
Block a user