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:
85 files changed
+2078
-274
No files matched your search
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Attendee" ADD COLUMN "phoneNumber" TEXT;
|
||||
@@ -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?
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user