feat: 保存咨询提交的业务来源

This commit is contained in:
que01 committed 2026-09-21 20:18:18 +08:00
1 parent 4754230e5b
commit 25bf980d3c
5 files changed
+24 -1

No files matched your search

+3
View File
@@ -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