diff options
Diffstat (limited to 'requirements/data_models')
| -rw-r--r-- | requirements/data_models/dml-bucket.md | 4 | ||||
| -rw-r--r-- | requirements/data_models/dml-transaction.md | 2 |
2 files changed, 4 insertions, 2 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 diff --git a/requirements/data_models/dml-transaction.md b/requirements/data_models/dml-transaction.md index bea2b75..e306a28 100644 --- a/requirements/data_models/dml-transaction.md +++ b/requirements/data_models/dml-transaction.md @@ -12,4 +12,4 @@ a wage slip. It may be associated with at most one bucket. | bucket_id | string? | The bucket associated with the transaction. | | timestamp | number | The time the transaction was inserted as a Unix timestamp. | -Source: req-010, req-017, req-092 +Sources: req-107, req-108, req-109, req-110 |
