feat: 保存咨询提交的业务来源
This commit is contained in:
1 parent
4754230e5b
commit
25bf980d3c
5 files changed
+24
-1
No files matched your search
@@ -127,6 +127,7 @@ model Offering {
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
inquiryForms InquiryForm[]
|
||||
inquirySubmissions InquirySubmission[]
|
||||
bookings Booking[]
|
||||
bookingItems BookingItem[]
|
||||
@@unique([brandId, name])
|
||||
@@ -156,8 +157,10 @@ model InquirySubmission {
|
||||
id String @id @default(uuid())
|
||||
brandId String
|
||||
inquiryFormId String
|
||||
offeringId String?
|
||||
brand BrandProfile @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
||||
inquiryForm InquiryForm @relation(fields: [inquiryFormId], references: [id], onDelete: Restrict)
|
||||
offering Offering? @relation(fields: [offeringId], references: [id], onDelete: SetNull)
|
||||
formVersion Int
|
||||
fieldsSnapshot Json
|
||||
values Json
|
||||
|
||||
Reference in new issue
Block a user