From 6a8b89975105fc0122e424d143f690f38633cbcf Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Tue, 15 Jul 2025 13:09:50 +0100 Subject: dml-bucket sourced from req-027, req-028 --- requirements/data_models/dml-bucket.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'requirements/data_models/dml-bucket.md') diff --git a/requirements/data_models/dml-bucket.md b/requirements/data_models/dml-bucket.md index b0d978f..0a7960a 100644 --- a/requirements/data_models/dml-bucket.md +++ b/requirements/data_models/dml-bucket.md @@ -8,4 +8,4 @@ A bucket represents a real category of spending, like beer or holidays. | name | string | A short description of the real category of spending. | | balance | number | The amount of money currently in the bucket. | -Source: req-017 +Sources: req-027, req-028 -- cgit v1.2.3 From bf2722034f0ae8ddc2277894542b8d6eb3b90527 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Tue, 15 Jul 2025 13:48:04 +0100 Subject: add req-030 --- requirements/data_models/dml-bucket.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'requirements/data_models/dml-bucket.md') 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: `:`. + +Sources: req-027, req-028, req-030 -- cgit v1.2.3