From a7b3dc2f02d81201bde5a27e01beb4753730ad12 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Sat, 16 May 2026 16:13:24 +0000 Subject: [PATCH] fix: restore missing columns to pets table The schema edit that added sizeCategory/coatType accidentally removed other existing columns (dateOfBirth, healthAlerts, groomingNotes, etc.). Restoring them now. Co-Authored-By: Paperclip --- packages/db/src/schema.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/db/src/schema.ts b/packages/db/src/schema.ts index cb9eaab..aa17bd5 100644 --- a/packages/db/src/schema.ts +++ b/packages/db/src/schema.ts @@ -154,6 +154,16 @@ export const pets = pgTable( sizeCategory: petSizeCategoryEnum("size_category"), coatType: coatTypeEnum("coat_type"), weightKg: numeric("weight_kg", { precision: 5, scale: 2 }), + dateOfBirth: timestamp("date_of_birth"), + healthAlerts: text("health_alerts"), + groomingNotes: text("grooming_notes"), + cutStyle: text("cut_style"), + shampooPreference: text("shampoo_preference"), + specialCareNotes: text("special_care_notes"), + customFields: jsonb("custom_fields").$type>().notNull().default({}), + photoKey: text("photo_key"), + photoUploadedAt: timestamp("photo_uploaded_at"), + image: text("image"), createdAt: timestamp("created_at").notNull().defaultNow(), updatedAt: timestamp("updated_at").notNull().defaultNow(), },