From 02bc0d2c1ba8311bd30aaa109aa82c4d044d9ce2 Mon Sep 17 00:00:00 2001 From: "groombook-engineer[bot]" <3141748+groombook-engineer[bot]@users.noreply.github.com> Date: Thu, 2 Apr 2026 17:38:29 +0000 Subject: [PATCH] fix(db): add missing image and logoKey schema fields to match migrations Adds `image: text("image")` to pets table and `logoKey: text("logo_key")` to businessSettings table to resolve typecheck failures. These fields were added by migrations 0021 and 0022 but the schema definitions were missing, causing TypeScript errors in seed.ts and settings.ts. Co-Authored-By: Paperclip --- packages/db/src/schema.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/db/src/schema.ts b/packages/db/src/schema.ts index ea4e104..38ed4dc 100644 --- a/packages/db/src/schema.ts +++ b/packages/db/src/schema.ts @@ -135,6 +135,7 @@ export const pets = pgTable("pets", { 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(), }); @@ -347,6 +348,7 @@ export const businessSettings = pgTable("business_settings", { businessName: text("business_name").notNull().default("GroomBook"), logoBase64: text("logo_base64"), logoMimeType: text("logo_mime_type"), + logoKey: text("logo_key"), primaryColor: text("primary_color").notNull().default("#4f8a6f"), accentColor: text("accent_color").notNull().default("#8b7355"), createdAt: timestamp("created_at").notNull().defaultNow(),