summaryrefslogtreecommitdiff
path: root/requirements/data_models/dml-transaction.md
blob: b6b76f7eab0d7af68180ba17b9815f1b9e950dc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# dml-transaction

A transaction represents a real transaction, such as buying a beer or depositing
a wage slip. It may be associated with at most one bucket.

| Field        | Type    | Description                                                |
| ------------ | ------- | ---------------------------------------------------------- |
| id           | string  |                                                            |
| amount       | number  | The amount of money involved in the transaction.           |
| date         | date    | The calendar date when the transaction took place.         |
| counterparty | string  | The other party in the transaction.                        |
| 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