summaryrefslogtreecommitdiff
path: root/requirements/data_models/dml-bucket.md
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2025-07-24 09:47:07 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2025-07-24 09:47:07 +0100
commitc4868152bb9d292c217452dff9eb1890f34e0d43 (patch)
treee49eb462dccaeaea322c4837f2670733e7d7cb92 /requirements/data_models/dml-bucket.md
parent868abcd0e62528263e0aa70fbcef92735a829fdd (diff)
task-059
Diffstat (limited to 'requirements/data_models/dml-bucket.md')
-rw-r--r--requirements/data_models/dml-bucket.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/requirements/data_models/dml-bucket.md b/requirements/data_models/dml-bucket.md
index ba1b415..dc7749b 100644
--- a/requirements/data_models/dml-bucket.md
+++ b/requirements/data_models/dml-bucket.md
@@ -4,6 +4,7 @@ A bucket represents a real category of spending, like beer or holidays.
| Field | Type | Description |
| ----------------- | ------ | --------------------------------------------------------- |
+| id | string | A unique identifier for the bucket. |
| name | string | A short description of the real category of spending. |
| balance | number | The amount of money the user intends to be free to spend. |
| balance_cache_key | string | A cache key for the balance. See notes. |
@@ -11,9 +12,10 @@ A bucket represents a real category of spending, like beer or holidays.
Constraints:
- `name` must be unique.
+- `id` must be equal to `name`, that is, `id` is an alias of the property, `name`.
Notes:
- `balance_cache_key` must be of the format: `<drip_id>:<transaction_id>`.
-Sources: req-027, req-028, req-030, req-092, req-098
+Sources: req-027, req-098, req-110, req-111