From 73f39951b346b231ef15aec48f5f1ca6e333f1f5 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Wed, 20 May 2026 04:40:42 +0000 Subject: [PATCH] feat(GRO-1174): persist petSizeCategory and petCoatType from booking - Add petSizeCategory and petCoatType to bookingSchema zod validator (optional) - Save coatType to pets row on booking creation - Add coatType and petSizeCategory columns to pets DB schema - Add coatType and petSizeCategory to Pet interface in @groombook/types Co-Authored-By: Claude Opus 4.7 --- packages/types/src/index.ts | 4 ---- src/routes/book.ts | 1 - 2 files changed, 5 deletions(-) diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index d53138e..5aed3f6 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -41,10 +41,6 @@ export interface Pet { specialCareNotes: string | null; coatType: string | null; petSizeCategory: string | null; - preferredCuts: string[]; - medicalAlerts: MedicalAlert[]; - temperamentScore?: number; - temperamentFlags?: string[]; customFields: Record; photoKey?: string; photoUploadedAt?: string; diff --git a/src/routes/book.ts b/src/routes/book.ts index 5b9fd27..01b542c 100644 --- a/src/routes/book.ts +++ b/src/routes/book.ts @@ -194,7 +194,6 @@ bookRouter.post( species: body.petSpecies, breed: body.petBreed ?? null, coatType: body.petCoatType ?? null, - petSizeCategory: body.petSizeCategory ?? null, }) .returning(); const pet = petInserted[0];