feat(properties): tree-aware readers for expenses, maintenance, checklists

Phase 2. Each service grows a `*ForProperties` (plural) variant that
takes a resolved property id array; the existing single-property
functions now delegate to them with `[propertyId]`. The route layer
will compute the descendant set via getDescendantIds when the user
toggles "include sub-properties" — this commit only adds the readers
behind the scenes.

Also extends the checklist_scope enum with 'property' so checklists
can attach directly to a property and the rollup query has a
well-typed scope to filter on.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-27 12:51:59 +07:00
parent 8117253841
commit 3b34458a99
7 changed files with 4743 additions and 9 deletions
File diff suppressed because it is too large Load Diff
+7
View File
@@ -127,6 +127,13 @@
"when": 1777268853484,
"tag": "0017_property_parent_check",
"breakpoints": true
},
{
"idx": 18,
"version": "7",
"when": 1777268985448,
"tag": "0018_checklist_scope_property",
"breakpoints": true
}
]
}