summaryrefslogtreecommitdiff
path: root/requirements/data_models
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2025-07-15 15:09:31 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2025-07-15 15:10:04 +0100
commit519721cd14e31fcc6998b387a27eaf3ad34d2869 (patch)
treeb47613ceced8be37c466d68a355d7eeae35b48c1 /requirements/data_models
parent136650f884576da871e48f6c1b2a927edea636d1 (diff)
add req-037
Diffstat (limited to 'requirements/data_models')
-rw-r--r--requirements/data_models/dml-drip.md17
-rw-r--r--requirements/data_models/dml-pipe.md10
2 files changed, 18 insertions, 9 deletions
diff --git a/requirements/data_models/dml-drip.md b/requirements/data_models/dml-drip.md
index a421180..127c73e 100644
--- a/requirements/data_models/dml-drip.md
+++ b/requirements/data_models/dml-drip.md
@@ -3,12 +3,13 @@
A drip represents a single daily transaction from the tank into a bucket as a
result of a pipe.
-| Field | Type | Description |
-| --------- | ------ | --------------------------------------------------- |
-| id | string | A unique ID. |
-| bucket_id | string | The ID of the bucket into which this drip drap. |
-| pipe_id | string | The ID of the pipe which from which this drip drap. |
-| date | date | The date on which this drip drap. |
-| amount | number | The amount of money which dripped. |
+| Field | Type | Description |
+| --------- | ------ | ------------------------------------------------------------- |
+| id | string | A unique ID. |
+| bucket_id | string | The ID of the bucket into which this drip drap. |
+| pipe_id | string | The ID of the pipe which from which this drip drap. |
+| date | date | The date on which this drip drap. |
+| amount | number | The amount of money which dripped. |
+| timestamp | number | The time on which this drip was inserted as a Unix timestamp. |
-Sources: req-030
+Sources: req-030, req-037
diff --git a/requirements/data_models/dml-pipe.md b/requirements/data_models/dml-pipe.md
index a701ea3..d889b0a 100644
--- a/requirements/data_models/dml-pipe.md
+++ b/requirements/data_models/dml-pipe.md
@@ -10,4 +10,12 @@ bucket. In other words, it represents a flow of money from the tank to a bucket.
| period | string | How long it takes for `amount` to flow through the pipe. |
| bucket_id | string | The ID of the bucket to which this pipe corresponds. |
-Source: req-017
+Constraints:
+
+- `period` must be one of these options:
+ - `day`
+ - `week`
+ - `month`
+ - `year`
+
+Sources: req-017, req-037