---
title: tm.saleslog
slug: db/tmsaleslog
createdAt: 2023-12-14T14:12:22.736Z
---

The saleslog contains a history of all sales transactions in the system. In the saleslog, payments are linked to the items for which was paid. This allows to generated detailed reports on the past sales

## Fields

| FIELD   | TYPE        | DESCRIPTION                                                                                                       |
| ------- | ----------- | ----------------------------------------------------------------------------------------------------------------- |
| id      | `int`       | ID                                                                                                                |
| ts      | `timestamp` | Timestamp for the recorded sales transaction                                                                      |
| orderid | `int`       | Link to the order for the recorded sales transaction<br />**References:** [tm.order](docId:_jxcUBXabuuSuHKqCpEaN) |
| userid  | `int`       | Link to the user for the recorded sales transaction<br />**References:** [tm.user](docId\:qu38RfHRkuj_gzoTeyPlC)  |

