feat: per-baby breastfeeding and pump feature toggles
Add isBreastfed and hasPump flags to Baby model. When disabled, hide breastfeeding/pump options from quick-add FAB, dashboard counters and quick-log groups, and the milk stock nav link. Settings page gains toggle UI to configure per baby. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Baby" ADD COLUMN "hasPump" BOOLEAN NOT NULL DEFAULT true,
|
||||
ADD COLUMN "isBreastfed" BOOLEAN NOT NULL DEFAULT true;
|
||||
@@ -149,7 +149,9 @@ model Baby {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
birthDate DateTime
|
||||
gender String?
|
||||
gender String?
|
||||
isBreastfed Boolean @default(true)
|
||||
hasPump Boolean @default(true)
|
||||
familyId String
|
||||
family Family @relation(fields: [familyId], references: [id])
|
||||
events Event[]
|
||||
|
||||
Reference in New Issue
Block a user