summaryrefslogtreecommitdiff
path: root/requirements/data_models/dml-bucket.md
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2025-07-15 22:23:18 +0100
committerJoe Carstairs <me@joeac.net>2025-07-15 22:23:18 +0100
commitd8945831d2cebeec98691a39ec19dac13cf0d66f (patch)
treeab0f9179598bbdaac9170848aeddb0ec0934d205 /requirements/data_models/dml-bucket.md
parent4b4621a18ff301708f98c8a6d89cb78e184ac795 (diff)
parent376e5623ef0a202c391908a7a3093df4d804a052 (diff)
Merge branch 'main' of https://git.joeac.net/joeac/schist
Diffstat (limited to 'requirements/data_models/dml-bucket.md')
-rw-r--r--requirements/data_models/dml-bucket.md20
1 files changed, 14 insertions, 6 deletions
diff --git a/requirements/data_models/dml-bucket.md b/requirements/data_models/dml-bucket.md
index b0d978f..3e33028 100644
--- a/requirements/data_models/dml-bucket.md
+++ b/requirements/data_models/dml-bucket.md
@@ -2,10 +2,18 @@
A bucket represents a real category of spending, like beer or holidays.
-| Field | Type | Description |
-| ------- | ------ | ----------------------------------------------------- |
-| id | string | |
-| name | string | A short description of the real category of spending. |
-| balance | number | The amount of money currently in the bucket. |
+| Field | Type | Description |
+| ----------------- | ------ | ----------------------------------------------------- |
+| name | string | A short description of the real category of spending. |
+| balance | number | The amount of money currently in the bucket. |
+| balance_cache_key | string | A cache key for the balance. See notes. |
-Source: req-017
+Constraints:
+
+- `name` must be unique.
+
+Notes:
+
+- `balance_cache_key` must be of the format: `<drip_id>:<transaction_id>`.
+
+Sources: req-027, req-028, req-030