From ad1b210de17a6ae07c99761c0953c26a29d46b56 Mon Sep 17 00:00:00 2001 From: Flea Flicker <22+gb_flea@noreply.git.farh.net> Date: Mon, 25 May 2026 18:20:57 +0000 Subject: [PATCH 1/3] fix(schema): add missing extended pet profile fields to packages/db (#73) --- packages/db/src/schema.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/db/src/schema.ts b/packages/db/src/schema.ts index de0ab29..3a12d96 100644 --- a/packages/db/src/schema.ts +++ b/packages/db/src/schema.ts @@ -11,6 +11,7 @@ import { unique, uuid, } from "drizzle-orm/pg-core"; +import type { MedicalAlert } from "@groombook/types"; // ─── Enums ──────────────────────────────────────────────────────────────────── @@ -164,6 +165,10 @@ export const pets = pgTable( specialCareNotes: text("special_care_notes"), coatType: coatTypeEnum("coat_type"), petSizeCategory: petSizeCategoryEnum("pet_size_category"), + temperamentScore: integer("temperament_score"), + temperamentFlags: jsonb("temperament_flags").$type().default([]), + medicalAlerts: jsonb("medical_alerts").$type().default([]), + preferredCuts: jsonb("preferred_cuts").$type().default([]), customFields: jsonb("custom_fields").$type>().notNull().default({}), photoKey: text("photo_key"), photoUploadedAt: timestamp("photo_uploaded_at"), -- 2.52.0 From 74da042d13a431e2f276b64a5800312f19d49cd1 Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Mon, 25 May 2026 18:31:52 +0000 Subject: [PATCH 2/3] fix(db): add missing extended pet profile fields to buildPet factory Lint Roller (QA) flagged that buildPet in factories.ts was missing the 4 fields added to the pets table schema, causing TS2739 in the Docker build job (run 1701, job 3717). Co-Authored-By: Claude Opus 4.7 --- packages/db/src/factories.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/db/src/factories.ts b/packages/db/src/factories.ts index 2ecad06..c15d42e 100644 --- a/packages/db/src/factories.ts +++ b/packages/db/src/factories.ts @@ -105,6 +105,10 @@ export function buildPet(overrides: Partial & { clientId: string }): Pet photoKey: null, photoUploadedAt: null, image: null, + temperamentScore: null, + temperamentFlags: [], + medicalAlerts: [], + preferredCuts: [], createdAt: new Date("2025-01-01T00:00:00Z"), updatedAt: new Date("2025-01-01T00:00:00Z"), }; -- 2.52.0 From cc09a8e1e8b3020bae7cd48c1034bfa0398de120 Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Mon, 25 May 2026 18:55:38 +0000 Subject: [PATCH 3/3] trigger CI again -- 2.52.0