summaryrefslogtreecommitdiff
path: root/requirements/data_models/dml-bucket.md
blob: 3e33028c8fbd45262093e995c5cb71e235c0706d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# dml-bucket

A bucket represents a real category of spending, like beer or holidays.

| 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.               |

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