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 <noreply@anthropic.com>
This commit is contained in:
@@ -164,6 +164,10 @@ export const pets = pgTable(
|
|||||||
specialCareNotes: text("special_care_notes"),
|
specialCareNotes: text("special_care_notes"),
|
||||||
coatType: coatTypeEnum("coat_type"),
|
coatType: coatTypeEnum("coat_type"),
|
||||||
petSizeCategory: petSizeCategoryEnum("pet_size_category"),
|
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<Record<string, string>>().notNull().default({}),
|
customFields: jsonb("custom_fields").$type<Record<string, string>>().notNull().default({}),
|
||||||
photoKey: text("photo_key"),
|
photoKey: text("photo_key"),
|
||||||
photoUploadedAt: timestamp("photo_uploaded_at"),
|
photoUploadedAt: timestamp("photo_uploaded_at"),
|
||||||
|
|||||||
Reference in New Issue
Block a user