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 <noreply@paperclip.ing>
This commit is contained in:
@@ -154,6 +154,16 @@ export const pets = pgTable(
|
|||||||
sizeCategory: petSizeCategoryEnum("size_category"),
|
sizeCategory: petSizeCategoryEnum("size_category"),
|
||||||
coatType: coatTypeEnum("coat_type"),
|
coatType: coatTypeEnum("coat_type"),
|
||||||
weightKg: numeric("weight_kg", { precision: 5, scale: 2 }),
|
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<Record<string, string>>().notNull().default({}),
|
||||||
|
photoKey: text("photo_key"),
|
||||||
|
photoUploadedAt: timestamp("photo_uploaded_at"),
|
||||||
|
image: text("image"),
|
||||||
createdAt: timestamp("created_at").notNull().defaultNow(),
|
createdAt: timestamp("created_at").notNull().defaultNow(),
|
||||||
updatedAt: timestamp("updated_at").notNull().defaultNow(),
|
updatedAt: timestamp("updated_at").notNull().defaultNow(),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user