summaryrefslogtreecommitdiff
path: root/requirements/data_models/dml-bucket.md
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2025-07-15 13:48:04 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2025-07-15 13:48:04 +0100
commitbf2722034f0ae8ddc2277894542b8d6eb3b90527 (patch)
treed3866f7237b19b6422ea780cf43a1d589a5dd03f /requirements/data_models/dml-bucket.md
parent8ce1d909ad205d7f212a66b180d054bcc21e5038 (diff)
add req-030
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 0a7960a..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. |
-Sources: req-027, req-028
+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