feat: booking with phone number (#14461)

Co-authored-by: Omar López <[email protected]>
Co-authored-by: Joe Au-Yeung <[email protected]>
Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-09-11 17:56:04 -07:00
1 parent 74a9f3c19e
commit 4a59841b02
85 files changed
+2078 -274

No files matched your search

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Attendee" ADD COLUMN "phoneNumber" TEXT;
+1
View File
@@ -541,6 +541,7 @@ model Attendee {
email String
name String
timeZone String
phoneNumber String?
locale String? @default("en")
booking Booking? @relation(fields: [bookingId], references: [id], onDelete: Cascade)
bookingId Int?
+1
View File
@@ -126,6 +126,7 @@ export type BookingFieldType = FormBuilderFieldType;
export const bookingResponses = z
.object({
email: z.string(),
attendeePhoneNumber: z.string().optional(),
//TODO: Why don't we move name out of bookingResponses and let it be handled like user fields?
name: z.union([
z.string(),