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:
2026-06-19 11:51:41 +02:00
parent 319d70c3a4
commit f2cc181ece
8 changed files with 67 additions and 28 deletions
@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Baby" ADD COLUMN "hasPump" BOOLEAN NOT NULL DEFAULT true,
ADD COLUMN "isBreastfed" BOOLEAN NOT NULL DEFAULT true;
+3 -1
View File
@@ -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[]