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 <noreply@anthropic.com>
This commit is contained in:
@@ -41,10 +41,6 @@ export interface Pet {
|
|||||||
specialCareNotes: string | null;
|
specialCareNotes: string | null;
|
||||||
coatType: string | null;
|
coatType: string | null;
|
||||||
petSizeCategory: string | null;
|
petSizeCategory: string | null;
|
||||||
preferredCuts: string[];
|
|
||||||
medicalAlerts: MedicalAlert[];
|
|
||||||
temperamentScore?: number;
|
|
||||||
temperamentFlags?: string[];
|
|
||||||
customFields: Record<string, string>;
|
customFields: Record<string, string>;
|
||||||
photoKey?: string;
|
photoKey?: string;
|
||||||
photoUploadedAt?: string;
|
photoUploadedAt?: string;
|
||||||
|
|||||||
@@ -194,7 +194,6 @@ bookRouter.post(
|
|||||||
species: body.petSpecies,
|
species: body.petSpecies,
|
||||||
breed: body.petBreed ?? null,
|
breed: body.petBreed ?? null,
|
||||||
coatType: body.petCoatType ?? null,
|
coatType: body.petCoatType ?? null,
|
||||||
petSizeCategory: body.petSizeCategory ?? null,
|
|
||||||
})
|
})
|
||||||
.returning();
|
.returning();
|
||||||
const pet = petInserted[0];
|
const pet = petInserted[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user