From cfba0c1e01f0bd2c9d0ecab782ab697d906e1ff4 Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Mon, 25 May 2026 18:14:45 +0000 Subject: [PATCH] fix(schema): add missing extended pet profile fields to packages/db Add temperamentScore, temperamentFlags, medicalAlerts, and preferredCuts to the pets table in packages/db/src/schema.ts to match the API schema. These columns already exist in the database via migration 0030_extended_pet_profile.sql (confirmed by GRO-1748). Refs: GRO-1752 Co-Authored-By: Claude Opus 4.7 --- packages/db/src/schema.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/db/src/schema.ts b/packages/db/src/schema.ts index de0ab29..ca355d8 100644 --- a/packages/db/src/schema.ts +++ b/packages/db/src/schema.ts @@ -164,6 +164,10 @@ export const pets = pgTable( specialCareNotes: text("special_care_notes"), coatType: coatTypeEnum("coat_type"), petSizeCategory: petSizeCategoryEnum("pet_size_category"), + temperamentScore: integer("temperament_score"), + temperamentFlags: text("temperament_flags"), + medicalAlerts: text("medical_alerts"), + preferredCuts: text("preferred_cuts"), customFields: jsonb("custom_fields").$type>().notNull().default({}), photoKey: text("photo_key"), photoUploadedAt: timestamp("photo_uploaded_at"),